mirror of
https://git.code.sf.net/p/seeddms/code
synced 2024-10-05 07:32:13 +00:00
check for access on RemoveUser
This commit is contained in:
parent
46602c744b
commit
46b36ba7e5
|
@ -106,7 +106,8 @@ class SeedDMS_View_UserList extends SeedDMS_Bootstrap_Style {
|
|||
echo "</td>";
|
||||
echo "<td>";
|
||||
echo "<div class=\"list-action\">";
|
||||
echo "<a href=\"../out/out.UsrMgr.php?userid=".$currUser->getID()."\"><i class=\"icon-edit\"></i></a> ";
|
||||
echo "<a href=\"../out/out.UsrMgr.php?userid=".$currUser->getID()."\"><i class=\"icon-edit\"></i></a> ";
|
||||
if ($this->check_access('RemoveUser'))
|
||||
echo "<a href=\"../out/out.RemoveUser.php?userid=".$currUser->getID()."\"><i class=\"icon-remove\"></i></a>";
|
||||
echo "</div>";
|
||||
echo "</td>";
|
||||
|
|
|
@ -185,7 +185,7 @@ $(document).ready( function() {
|
|||
?>
|
||||
<table class="table-condensed">
|
||||
<?php
|
||||
if($currUser && !in_array($currUser->getID(), $undeluserids)) {
|
||||
if($currUser && !in_array($currUser->getID(), $undeluserids) && $this->check_access('RemoveUser')) {
|
||||
?>
|
||||
<tr>
|
||||
<td></td>
|
||||
|
|
Loading…
Reference in New Issue
Block a user