mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-02-06 15:14:58 +00:00
add substitution of users
This commit is contained in:
parent
ddfe87a82c
commit
00c1efffac
|
@ -470,6 +470,12 @@ background-image: linear-gradient(to bottom, #882222, #111111);;
|
||||||
if($this->params['user']->isAdmin()) {
|
if($this->params['user']->isAdmin()) {
|
||||||
$showdivider = true;
|
$showdivider = true;
|
||||||
echo " <a class=\"dropdown-item\" href=\"".$this->params['settings']->_httpRoot."out/out.SubstituteUser.php\">".getMLText("substitute_user")."</a>\n";
|
echo " <a class=\"dropdown-item\" href=\"".$this->params['settings']->_httpRoot."out/out.SubstituteUser.php\">".getMLText("substitute_user")."</a>\n";
|
||||||
|
} elseif($substitutes = $this->params['user']->getReverseSubstitutes()) {
|
||||||
|
if(count($substitutes) == 1) {
|
||||||
|
echo " <a class=\"dropdown-item\" href=\"".$this->params['settings']->_httpRoot."op/op.SubstituteUser.php?userid=".$substitutes[0]->getID()."&formtoken=".createFormKey('substituteuser')."\">".getMLText("substitute_to_user", array('username'=>$substitutes[0]->getFullName()))."</a>\n";
|
||||||
|
} else {
|
||||||
|
echo " <a class=\"dropdown-item\" href=\"".$this->params['settings']->_httpRoot."out/out.SubstituteUser.php\">".getMLText("substitute_user")."</a>\n";
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if($showdivider)
|
if($showdivider)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user