mirror of
				https://git.code.sf.net/p/seeddms/code
				synced 2025-10-31 13:18:06 +00:00 
			
		
		
		
	do not show users removed from process unless admin
This commit is contained in:
		
							parent
							
								
									6f4577d7b2
								
							
						
					
					
						commit
						a42c42f335
					
				|  | @ -816,37 +816,39 @@ class SeedDMS_View_ViewDocument extends SeedDMS_Bootstrap_Style { | |||
| 						} | ||||
| 						break; | ||||
| 				} | ||||
| 				print "<tr>\n"; | ||||
| 				print "<td>".$reqName."</td>\n"; | ||||
| 				print "<td><ul class=\"unstyled\"><li>".$r["date"]."</li>"; | ||||
| 				/* $updateUser is the user who has done the review */ | ||||
| 				$updateUser = $dms->getUser($r["userID"]); | ||||
| 				print "<li>".(is_object($updateUser) ? htmlspecialchars($updateUser->getFullName()." (".$updateUser->getLogin().")") : "unknown user id '".$r["userID"]."'")."</li></ul></td>"; | ||||
| 				print "<td>".htmlspecialchars($r["comment"]); | ||||
| 				if($r['file']) { | ||||
| 					echo "<br />"; | ||||
| 					if($accessop->check_controller_access('Download', array('action'=>'run'))) { | ||||
| 						echo "<a href=\"../op/op.Download.php?documentid=".$documentid."&reviewlogid=".$r['reviewLogID']."\" class=\"btn btn-mini\"><i class=\"icon-download\"></i> ".getMLText('download')."</a>"; | ||||
| 					} | ||||
| 				} | ||||
| 				print "</td>\n"; | ||||
| 				print "<td>".getReviewStatusText($r["status"])."</td>\n"; | ||||
| 				print "<td><ul class=\"unstyled\">"; | ||||
| 				if($accesserr) | ||||
| 					echo "<li><span class=\"alert alert-error\">".$accesserr."</span></li>"; | ||||
| 
 | ||||
| 				if($accessop->mayReview($document)) { | ||||
| 					if ($is_reviewer) { | ||||
| 						if ($r["status"]==0) { | ||||
| 							print "<li>".$this->html_link('ReviewDocument', array('documentid'=>$documentid, 'version'=>$latestContent->getVersion(), 'reviewid'=>$r['reviewID']), array('class'=>'btn btn-mini'), getMLText("add_review"), false, true)."</li>"; | ||||
| 						} elseif ($accessop->mayUpdateReview($document, $updateUser) && (($r["status"]==1)||($r["status"]==-1))){ | ||||
| 							print "<li>".$this->html_link('ReviewDocument', array('documentid'=>$documentid, 'version'=>$latestContent->getVersion(), 'reviewid'=>$r['reviewID']), array('class'=>'btn btn-mini'), getMLText("edit"), false, true)."</li>"; | ||||
| 				if($user->isAdmin() || $r["status"] > -2) { | ||||
| 					print "<tr>\n"; | ||||
| 					print "<td>".$reqName."</td>\n"; | ||||
| 					print "<td><ul class=\"unstyled\"><li>".$r["date"]."</li>"; | ||||
| 					/* $updateUser is the user who has done the review */ | ||||
| 					$updateUser = $dms->getUser($r["userID"]); | ||||
| 					print "<li>".(is_object($updateUser) ? htmlspecialchars($updateUser->getFullName()." (".$updateUser->getLogin().")") : "unknown user id '".$r["userID"]."'")."</li></ul></td>"; | ||||
| 					print "<td>".htmlspecialchars($r["comment"]); | ||||
| 					if($r['file']) { | ||||
| 						echo "<br />"; | ||||
| 						if($accessop->check_controller_access('Download', array('action'=>'run'))) { | ||||
| 							echo "<a href=\"../op/op.Download.php?documentid=".$documentid."&reviewlogid=".$r['reviewLogID']."\" class=\"btn btn-mini\"><i class=\"icon-download\"></i> ".getMLText('download')."</a>"; | ||||
| 						} | ||||
| 					} | ||||
| 				} | ||||
| 					print "</td>\n"; | ||||
| 					print "<td>".getReviewStatusText($r["status"])."</td>\n"; | ||||
| 					print "<td><ul class=\"unstyled\">"; | ||||
| 					if($accesserr) | ||||
| 						echo "<li><span class=\"alert alert-error\">".$accesserr."</span></li>"; | ||||
| 
 | ||||
| 				print "</ul></td>\n";	 | ||||
| 				print "</tr>\n"; | ||||
| 					if($accessop->mayReview($document)) { | ||||
| 						if ($is_reviewer) { | ||||
| 							if ($r["status"]==0) { | ||||
| 								print "<li>".$this->html_link('ReviewDocument', array('documentid'=>$documentid, 'version'=>$latestContent->getVersion(), 'reviewid'=>$r['reviewID']), array('class'=>'btn btn-mini'), getMLText("add_review"), false, true)."</li>"; | ||||
| 							} elseif ($accessop->mayUpdateReview($document, $updateUser) && (($r["status"]==1)||($r["status"]==-1))){ | ||||
| 								print "<li>".$this->html_link('ReviewDocument', array('documentid'=>$documentid, 'version'=>$latestContent->getVersion(), 'reviewid'=>$r['reviewID']), array('class'=>'btn btn-mini'), getMLText("edit"), false, true)."</li>"; | ||||
| 							} | ||||
| 						} | ||||
| 					} | ||||
| 
 | ||||
| 					print "</ul></td>\n";	 | ||||
| 					print "</tr>\n"; | ||||
| 				} | ||||
| 			} | ||||
| 		} | ||||
| 
 | ||||
|  | @ -903,38 +905,40 @@ class SeedDMS_View_ViewDocument extends SeedDMS_Bootstrap_Style { | |||
| 						} | ||||
| 						break; | ||||
| 				} | ||||
| 				print "<tr>\n"; | ||||
| 				print "<td>".$reqName."</td>\n"; | ||||
| 				print "<td><ul class=\"unstyled\"><li>".$a["date"]."</li>"; | ||||
| 				/* $updateUser is the user who has done the approval */ | ||||
| 				$updateUser = $dms->getUser($a["userID"]); | ||||
| 				print "<li>".(is_object($updateUser) ? htmlspecialchars($updateUser->getFullName()." (".$updateUser->getLogin().")") : "unknown user id '".$a["userID"]."'")."</li></ul></td>";	 | ||||
| 				print "<td>".htmlspecialchars($a["comment"]); | ||||
| 				if($a['file']) { | ||||
| 					echo "<br />"; | ||||
| 					if($accessop->check_controller_access('Download', array('action'=>'run'))) { | ||||
| 						echo "<a href=\"../op/op.Download.php?documentid=".$documentid."&approvelogid=".$a['approveLogID']."\" class=\"btn btn-mini\"><i class=\"icon-download\"></i> ".getMLText('download')."</a>"; | ||||
| 					} | ||||
| 				} | ||||
| 				echo "</td>\n"; | ||||
| 				print "<td>".getApprovalStatusText($a["status"])."</td>\n"; | ||||
| 				print "<td><ul class=\"unstyled\">"; | ||||
| 				if($accesserr) | ||||
| 					echo "<li><span class=\"alert alert-error\">".$accesserr."</span></li>"; | ||||
| 
 | ||||
| 				if($accessop->mayApprove($document)) { | ||||
| 					if ($is_approver) { | ||||
| 						if ($a['status'] == 0) { | ||||
| 							print "<li>".$this->html_link('ApproveDocument', array('documentid'=>$documentid, 'version'=>$latestContent->getVersion(), 'approveid'=>$a['approveID']), array('class'=>'btn btn-mini'), getMLText("add_approval"), false, true)."</li>"; | ||||
| 						} elseif ($accessop->mayUpdateApproval($document, $updateUser) && (($a["status"]==1)||($a["status"]==-1))){ | ||||
| 							print "<li>".$this->html_link('ApproveDocument', array('documentid'=>$documentid, 'version'=>$latestContent->getVersion(), 'approveid'=>$a['approveID']), array('class'=>'btn btn-mini'), getMLText("edit"), false, true)."</li>"; | ||||
| 				if($user->isAdmin() || $r["status"] > -2) { | ||||
| 					print "<tr>\n"; | ||||
| 					print "<td>".$reqName."</td>\n"; | ||||
| 					print "<td><ul class=\"unstyled\"><li>".$a["date"]."</li>"; | ||||
| 					/* $updateUser is the user who has done the approval */ | ||||
| 					$updateUser = $dms->getUser($a["userID"]); | ||||
| 					print "<li>".(is_object($updateUser) ? htmlspecialchars($updateUser->getFullName()." (".$updateUser->getLogin().")") : "unknown user id '".$a["userID"]."'")."</li></ul></td>";	 | ||||
| 					print "<td>".htmlspecialchars($a["comment"]); | ||||
| 					if($a['file']) { | ||||
| 						echo "<br />"; | ||||
| 						if($accessop->check_controller_access('Download', array('action'=>'run'))) { | ||||
| 							echo "<a href=\"../op/op.Download.php?documentid=".$documentid."&approvelogid=".$a['approveLogID']."\" class=\"btn btn-mini\"><i class=\"icon-download\"></i> ".getMLText('download')."</a>"; | ||||
| 						} | ||||
| 					} | ||||
| 				} | ||||
| 					echo "</td>\n"; | ||||
| 					print "<td>".getApprovalStatusText($a["status"])."</td>\n"; | ||||
| 					print "<td><ul class=\"unstyled\">"; | ||||
| 					if($accesserr) | ||||
| 						echo "<li><span class=\"alert alert-error\">".$accesserr."</span></li>"; | ||||
| 
 | ||||
| 				print "</ul>"; | ||||
| 				print "</td>\n";	 | ||||
| 				print "</tr>\n"; | ||||
| 					if($accessop->mayApprove($document)) { | ||||
| 						if ($is_approver) { | ||||
| 							if ($a['status'] == 0) { | ||||
| 								print "<li>".$this->html_link('ApproveDocument', array('documentid'=>$documentid, 'version'=>$latestContent->getVersion(), 'approveid'=>$a['approveID']), array('class'=>'btn btn-mini'), getMLText("add_approval"), false, true)."</li>"; | ||||
| 							} elseif ($accessop->mayUpdateApproval($document, $updateUser) && (($a["status"]==1)||($a["status"]==-1))){ | ||||
| 								print "<li>".$this->html_link('ApproveDocument', array('documentid'=>$documentid, 'version'=>$latestContent->getVersion(), 'approveid'=>$a['approveID']), array('class'=>'btn btn-mini'), getMLText("edit"), false, true)."</li>"; | ||||
| 							} | ||||
| 						} | ||||
| 					} | ||||
| 
 | ||||
| 					print "</ul>"; | ||||
| 					print "</td>\n";	 | ||||
| 					print "</tr>\n"; | ||||
| 				} | ||||
| 			} | ||||
| 		} | ||||
| 
 | ||||
|  | @ -1367,27 +1371,29 @@ class SeedDMS_View_ViewDocument extends SeedDMS_Bootstrap_Style { | |||
| 						} | ||||
| 						break; | ||||
| 				} | ||||
| 				print "<tr>\n"; | ||||
| 				print "<td>".$reqName."</td>\n"; | ||||
| 				print "<td><ul class=\"unstyled\"><li>".$r["date"]."</li>"; | ||||
| 				/* $updateUser is the user who has done the revision */ | ||||
| 				$updateUser = $dms->getUser($r["userID"]); | ||||
| 				print "<li>".(is_object($updateUser) ? htmlspecialchars($updateUser->getFullName()." (".$updateUser->getLogin().")") : "unknown user id '".$r["userID"]."'")."</li></ul></td>"; | ||||
| 				print "<td>".htmlspecialchars($r["comment"])."</td>\n"; | ||||
| 				print "<td>".getRevisionStatusText($r["status"])."</td>\n"; | ||||
| 				print "<td><ul class=\"unstyled\">"; | ||||
| 				if($accesserr) | ||||
| 					echo "<li><span class=\"alert alert-error\">".$accesserr."</span></li>"; | ||||
| 				if($accessop->mayRevise($document)) { | ||||
| 					if ($is_recipient && $r["status"]==0) { | ||||
| 						print "<li>".$this->html_link('ReviseDocument', array('documentid'=>$documentid, 'version'=>$latestContent->getVersion(), 'revisionid'=>$r['revisionID']), array('class'=>'btn btn-mini'), getMLText("add_revision"), false, true)."</li>"; | ||||
| 					} elseif (($updateUser==$user)&&(($r["status"]==1)||($r["status"]==-1))&&(!$document->hasExpired())){ | ||||
| 						print "<li>".$this->html_link('ReviseDocument', array('documentid'=>$documentid, 'version'=>$latestContent->getVersion(), 'revisionid'=>$r['revisionID']), array('class'=>'btn btn-mini'), getMLText("edit"), false, true)."</li>"; | ||||
| 				if($user->isAdmin() || $r["status"] != -2) { | ||||
| 					print "<tr>\n"; | ||||
| 					print "<td>".$reqName."</td>\n"; | ||||
| 					print "<td><ul class=\"unstyled\"><li>".$r["date"]."</li>"; | ||||
| 					/* $updateUser is the user who has done the revision */ | ||||
| 					$updateUser = $dms->getUser($r["userID"]); | ||||
| 					print "<li>".(is_object($updateUser) ? htmlspecialchars($updateUser->getFullName()." (".$updateUser->getLogin().")") : "unknown user id '".$r["userID"]."'")."</li></ul></td>"; | ||||
| 					print "<td>".htmlspecialchars($r["comment"])."</td>\n"; | ||||
| 					print "<td>".getRevisionStatusText($r["status"])."</td>\n"; | ||||
| 					print "<td><ul class=\"unstyled\">"; | ||||
| 					if($accesserr) | ||||
| 						echo "<li><span class=\"alert alert-error\">".$accesserr."</span></li>"; | ||||
| 					if($accessop->mayRevise($document)) { | ||||
| 						if ($is_recipient && $r["status"]==0) { | ||||
| 							print "<li>".$this->html_link('ReviseDocument', array('documentid'=>$documentid, 'version'=>$latestContent->getVersion(), 'revisionid'=>$r['revisionID']), array('class'=>'btn btn-mini'), getMLText("add_revision"), false, true)."</li>"; | ||||
| 						} elseif (($updateUser==$user)&&(($r["status"]==1)||($r["status"]==-1))&&(!$document->hasExpired())){ | ||||
| 							print "<li>".$this->html_link('ReviseDocument', array('documentid'=>$documentid, 'version'=>$latestContent->getVersion(), 'revisionid'=>$r['revisionID']), array('class'=>'btn btn-mini'), getMLText("edit"), false, true)."</li>"; | ||||
| 						} | ||||
| 					} | ||||
| 				} | ||||
| 
 | ||||
| 				print "</ul></td>\n";	 | ||||
| 				print "</tr>\n"; | ||||
| 					print "</ul></td>\n";	 | ||||
| 					print "</tr>\n"; | ||||
| 				} | ||||
| 			} | ||||
| ?>
 | ||||
| 		</table> | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue
	
	Block a user
	 Uwe Steinmann
						Uwe Steinmann