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