show access restrictions for all role types except admin

This commit is contained in:
Uwe Steinmann 2016-04-12 17:22:04 +02:00
parent f7118a6ac3
commit daa4066c04

View File

@ -150,7 +150,7 @@ $(document).ready( function() {
<td><select name="role"><option value="<?php echo SeedDMS_Core_Role::role_user ?>"><?php printMLText("role_user"); ?></option><option value="<?php echo SeedDMS_Core_Role::role_admin ?>" <?php if($currRole && $currRole->getRole() == SeedDMS_Core_Role::role_admin) echo "selected"; ?>><?php printMLText("role_admin"); ?></option><option value="<?php echo SeedDMS_Core_Role::role_guest ?>" <?php if($currRole && $currRole->getRole() == SeedDMS_Core_Role::role_guest) echo "selected"; ?>><?php printMLText("role_guest"); ?></option></select></td>
</tr>
<?php
if($currRole && $currRole->getRole() == SeedDMS_Core_Role::role_user) {
if($currRole && $currRole->getRole() != SeedDMS_Core_Role::role_admin) {
echo "<tr>";
echo "<td>".getMLText('restrict_access')."</td>";
echo "<td>";