From 0f9ac271cef11ab7b568427b31ae8efbf535b54f Mon Sep 17 00:00:00 2001 From: Uwe Steinmann Date: Wed, 23 Sep 2020 08:53:05 +0200 Subject: [PATCH] do not show removed approvers/reviewers unless admin --- views/bootstrap/class.ViewDocument.php | 122 +++++++++++++------------ 1 file changed, 63 insertions(+), 59 deletions(-) diff --git a/views/bootstrap/class.ViewDocument.php b/views/bootstrap/class.ViewDocument.php index 5cc4a685a..7cf62e8a4 100644 --- a/views/bootstrap/class.ViewDocument.php +++ b/views/bootstrap/class.ViewDocument.php @@ -837,38 +837,40 @@ class SeedDMS_View_ViewDocument extends SeedDMS_Bootstrap_Style { } break; } - print "\n"; - print "".$reqName."\n"; - print "".$r["date"]." - "; - /* $updateUser is the user who has done the review */ - $updateUser = $dms->getUser($r["userID"]); - print (is_object($updateUser) ? htmlspecialchars($updateUser->getFullName()." (".$updateUser->getLogin().")") : "unknown user id '".$r["userID"]."'")."
"; - print htmlspecialchars($r["comment"]); - if($r['file']) { - echo "
"; - echo " ".getMLText('download').""; - } - print "\n"; - print ""; - if($class) - echo " "; - print getReviewStatusText($r["status"])."\n"; - print "\n"; - print "\n"; } print ""; // $this->contentContainerEnd(); @@ -937,39 +939,41 @@ class SeedDMS_View_ViewDocument extends SeedDMS_Bootstrap_Style { } break; } - print "\n"; - print "".$reqName."\n"; - print "".$a["date"]." - "; - /* $updateUser is the user who has done the approval */ - $updateUser = $dms->getUser($a["userID"]); - print (is_object($updateUser) ? htmlspecialchars($updateUser->getFullName()." (".$updateUser->getLogin().")") : "unknown user id '".$a["userID"]."'")."
"; - print htmlspecialchars($a["comment"]); - if($a['file']) { - echo "
"; - echo " ".getMLText('download').""; - } - echo "\n"; - print ""; - if($class) - echo " "; - print getApprovalStatusText($a["status"])."\n"; - print ""; + print "\n"; + print "\n"; + } } }