mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-05-31 05:57:34 +00:00
set formtoken in button to sustitute user
This commit is contained in:
parent
b90d1a6be5
commit
a7ea074328
|
@ -142,7 +142,7 @@ $(document).ready( function() {
|
|||
echo "</table>";
|
||||
|
||||
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";
|
||||
echo "<a class=\"btn btn-primary\" href=\"../op/op.SubstituteUser.php?userid=".((int) $seluser->getID())."&formtoken=".createFormKey('substituteuser')."\"><i class=\"icon-exchange\"></i> ".getMLText('substitute_user')."</a> ";
|
||||
}
|
||||
} /* }}} */
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user