mirror of
				https://git.code.sf.net/p/seeddms/code
				synced 2025-10-30 20:51:22 +00:00 
			
		
		
		
	do not show substitute user button if not admin or same user
This commit is contained in:
		
							parent
							
								
									0005d9ffaf
								
							
						
					
					
						commit
						e9f185533c
					
				|  | @ -80,6 +80,7 @@ $(document).ready( function() { | |||
| 
 | ||||
| 	function info() { /* {{{ */ | ||||
| 		$dms = $this->params['dms']; | ||||
| 		$user = $this->params['user']; | ||||
| 		$seluser = $this->params['seluser']; | ||||
| 		$quota = $this->params['quota']; | ||||
| 		$workflowmode = $this->params['workflowmode']; | ||||
|  | @ -134,7 +135,8 @@ $(document).ready( function() { | |||
| 			} | ||||
| 			echo "</table>"; | ||||
| 
 | ||||
| 			echo "<a href=\"../op/op.SubstituteUser.php?userid=".$seluser->getID()."\" class=\"btn btn-primary\">".getMLText("substitute_user")."</a>\n"; | ||||
| 			if($user->isAdmin() && $seluser->getID() != $user->getID()) | ||||
| 				echo "<a href=\"../op/op.SubstituteUser.php?userid=".$seluser->getID()."\" class=\"btn btn-primary\">".getMLText("substitute_user")."</a>\n"; | ||||
| 		} | ||||
| 	} /* }}} */ | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue
	
	Block a user
	 Uwe Steinmann
						Uwe Steinmann