]> source.dussan.org Git - nextcloud-server.git/commitdiff
add a client side check
authorGeorg Ehrke <dev@georgswebsite.de>
Wed, 28 Nov 2012 17:40:58 +0000 (18:40 +0100)
committerGeorg Ehrke <dev@georgswebsite.de>
Wed, 28 Nov 2012 17:40:58 +0000 (18:40 +0100)
settings/js/users.js

index 7c022e52937940a5e1f71cf3e602d24eb7fd3c2b..a278b41721948f21869e336d4db45d195253c4d8 100644 (file)
@@ -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;
                                        }