diff options
Diffstat (limited to 'usr/local/www/system_groupmanager.php')
-rw-r--r-- | usr/local/www/system_groupmanager.php | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/usr/local/www/system_groupmanager.php b/usr/local/www/system_groupmanager.php index c1f5aab..a249d9b 100644 --- a/usr/local/www/system_groupmanager.php +++ b/usr/local/www/system_groupmanager.php @@ -246,7 +246,19 @@ if($_GET['act']=="new" || $_GET['act']=="edit"){ <tr> <td width="22%" valign="top" class="vncellreq">Group name</td> <td width="78%" class="vtable"> + <?php + $inuse = false; + foreach($config['system']['user'] as $su) { + if($su['groupname'] == $pconfig['name']) + $inuse = true; + } + ?> + <?php if($inuse == false): ?> <input name="groupname" type="text" class="formfld" id="groupname" size="20" value="<?=htmlspecialchars($pconfig['name']);?>"> + <?php else: ?> + <?php echo $pconfig['name'] . "*"; ?> + <input name="groupname" type="hidden" class="formfld" id="groupname" value="<?=htmlspecialchars($pconfig['name']);?>"> + <?php endif; ?> </td> </tr> <tr> |