- show submit review link only for logged in user

This commit is contained in:
steinm 2011-07-20 17:12:03 +00:00
parent 40a7d85e45
commit 545043cd94

View File

@ -279,7 +279,7 @@ if (is_array($reviewStatus) && count($reviewStatus)>0) {
print "<td>".getReviewStatusText($r["status"])."</td>\n";
print "<td><ul class=\"actions\">";
if ($is_reviewer && $status["status"]==S_DRAFT_REV) {
if (($required==$user) && $is_reviewer && $status["status"]==S_DRAFT_REV) {
print "<li><a href=\"../out/out.ReviewDocument.php?documentid=".$documentid."&version=".$latestContent->getVersion()."\">".getMLText("submit_review")."</a></li>";
}else if (($updateUser==$user)&&(($r["status"]==1)||($r["status"]==-1))&&(!$document->hasExpired())){
print "<li><a href=\"../out/out.ReviewDocument.php?documentid=".$documentid."&version=".$latestContent->getVersion()."\">".getMLText("edit")."</a></li>";