aboutsummaryrefslogtreecommitdiffstats
path: root/admin/templates
diff options
context:
space:
mode:
authorJakob Sack <kde@jakobsack.de>2011-04-18 12:39:28 +0200
committerJakob Sack <kde@jakobsack.de>2011-04-18 12:39:28 +0200
commitda30671ec474bfa522d0a0b21d3e457437b9b57b (patch)
tree1776076ec122cb1c60d089d15abf6a674f474012 /admin/templates
parentfe90bf4bdce4eb03722382ecbd054035d6b3c590 (diff)
downloadnextcloud-server-da30671ec474bfa522d0a0b21d3e457437b9b57b.tar.gz
nextcloud-server-da30671ec474bfa522d0a0b21d3e457437b9b57b.zip
More error checking in user management
Diffstat (limited to 'admin/templates')
-rw-r--r--admin/templates/users.php12
1 files changed, 11 insertions, 1 deletions
diff --git a/admin/templates/users.php b/admin/templates/users.php
index e769dcd4fc5..235df5bf829 100644
--- a/admin/templates/users.php
+++ b/admin/templates/users.php
@@ -63,7 +63,13 @@
<?php foreach($_["groups"] as $group): ?>
<tr x-gid="<?php echo $group["name"]; ?>">
<td><?php echo $group["name"] ?></td>
- <td><a class="removegroupbutton" href="">remove</a></td>
+ <td>
+ <?php if( $group["name"] != "admin" ): ?>
+ <a class="removegroupbutton" href="">remove</a>
+ <?php else: ?>
+ &nbsp;
+ <?php endif; ?>
+ </td>
</tr>
<?php endforeach; ?>
</tbody>
@@ -104,3 +110,7 @@
<input id="removegroupnamefield" type="hidden" name="groupname" value="">
</form>
</div>
+
+<div id="errordialog" title="Error">
+ <span id="errormessage"></span>
+</div>