diff options
author | Georg Ehrke <dev@georgswebsite.de> | 2012-11-28 18:40:58 +0100 |
---|---|---|
committer | Georg Ehrke <dev@georgswebsite.de> | 2012-11-28 18:40:58 +0100 |
commit | 4c83a4c918f94413bd1a1dcbc64305e3fd25e291 (patch) | |
tree | 048f6c1c4de11b4203d949a99e6335c6d7f6bd8f /settings/js | |
parent | a5774229a13ef307dabe3142d1a85f12bf41b391 (diff) | |
download | nextcloud-server-4c83a4c918f94413bd1a1dcbc64305e3fd25e291.tar.gz nextcloud-server-4c83a4c918f94413bd1a1dcbc64305e3fd25e291.zip |
add a client side check
Diffstat (limited to 'settings/js')
-rw-r--r-- | settings/js/users.js | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/settings/js/users.js b/settings/js/users.js index 7c022e52937..a278b417219 100644 --- a/settings/js/users.js +++ b/settings/js/users.js @@ -160,6 +160,9 @@ var UserList={ } if(user){ var checkHandeler=function(group){ + if(user==OC.currentUser && group=='admin'){ + return false; + } if(!isadmin && checked.length == 1 && checked[0] == group){ return false; } |