do not show removed approvers/reviewers unless admin

This commit is contained in:
Uwe Steinmann 2020-09-23 08:53:05 +02:00
parent 76c02d89c7
commit 0f9ac271ce

View File

@ -837,6 +837,7 @@ class SeedDMS_View_ViewDocument extends SeedDMS_Bootstrap_Style {
} }
break; break;
} }
if($user->isAdmin() || $r["status"] > -2) {
print "<tr>\n"; print "<tr>\n";
print "<td>".$reqName."</td>\n"; print "<td>".$reqName."</td>\n";
print "<td><i style=\"font-size: 80%;\">".$r["date"]." - "; print "<td><i style=\"font-size: 80%;\">".$r["date"]." - ";
@ -870,6 +871,7 @@ class SeedDMS_View_ViewDocument extends SeedDMS_Bootstrap_Style {
print "</ul></td>\n"; print "</ul></td>\n";
print "</tr>\n"; print "</tr>\n";
} }
}
print "</table>"; print "</table>";
// $this->contentContainerEnd(); // $this->contentContainerEnd();
@ -937,6 +939,7 @@ class SeedDMS_View_ViewDocument extends SeedDMS_Bootstrap_Style {
} }
break; break;
} }
if($user->isAdmin() || $a["status"] > -2) {
print "<tr>\n"; print "<tr>\n";
print "<td>".$reqName."</td>\n"; print "<td>".$reqName."</td>\n";
print "<td><i style=\"font-size: 80%;\">".$a["date"]." - "; print "<td><i style=\"font-size: 80%;\">".$a["date"]." - ";
@ -972,6 +975,7 @@ class SeedDMS_View_ViewDocument extends SeedDMS_Bootstrap_Style {
print "</tr>\n"; print "</tr>\n";
} }
} }
}
print "</table>\n"; print "</table>\n";
// $this->contentContainerEnd(); // $this->contentContainerEnd();