summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGeorg Ehrke <dev@georgswebsite.de>2012-07-21 13:10:51 +0200
committerGeorg Ehrke <dev@georgswebsite.de>2012-07-21 13:10:51 +0200
commit88f66460a36f7809289313b30ef4fbe58bd8cced (patch)
treeb982146733f34c7411913bf79fa6149b6d93a41d
parentfdb167a0460e1747f803c47755f8148a25feffd8 (diff)
downloadnextcloud-server-88f66460a36f7809289313b30ef4fbe58bd8cced.tar.gz
nextcloud-server-88f66460a36f7809289313b30ef4fbe58bd8cced.zip
some js improvements for subadmins
-rw-r--r--settings/js/users.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/settings/js/users.js b/settings/js/users.js
index c184db43748..e46c6446b86 100644
--- a/settings/js/users.js
+++ b/settings/js/users.js
@@ -94,6 +94,9 @@ $(document).ready(function(){
if(user==OC.currentUser && group=='admin'){
return false;
}
+ if(!isadmin && checked.length == 1 && checked[0] == group){
+ return false;
+ }
$.post(
OC.filePath('settings','ajax','togglegroups.php'),
{