check for access on RemoveUser

This commit is contained in:
Uwe Steinmann 2016-04-13 08:51:57 +02:00
parent 46602c744b
commit 46b36ba7e5
2 changed files with 3 additions and 2 deletions

View File

@ -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>";

View File

@ -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>