mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-05-09 13:06:14 +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() { /* {{{ */
|
function info() { /* {{{ */
|
||||||
$dms = $this->params['dms'];
|
$dms = $this->params['dms'];
|
||||||
|
$user = $this->params['user'];
|
||||||
$seluser = $this->params['seluser'];
|
$seluser = $this->params['seluser'];
|
||||||
$quota = $this->params['quota'];
|
$quota = $this->params['quota'];
|
||||||
$workflowmode = $this->params['workflowmode'];
|
$workflowmode = $this->params['workflowmode'];
|
||||||
|
@ -134,7 +135,8 @@ $(document).ready( function() {
|
||||||
}
|
}
|
||||||
echo "</table>";
|
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