From 4c83a4c918f94413bd1a1dcbc64305e3fd25e291 Mon Sep 17 00:00:00 2001 From: Georg Ehrke Date: Wed, 28 Nov 2012 18:40:58 +0100 Subject: [PATCH] add a client side check --- settings/js/users.js | 3 +++ 1 file changed, 3 insertions(+) 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; } -- 2.39.5