From 88f66460a36f7809289313b30ef4fbe58bd8cced Mon Sep 17 00:00:00 2001 From: Georg Ehrke Date: Sat, 21 Jul 2012 13:10:51 +0200 Subject: some js improvements for subadmins --- settings/js/users.js | 3 +++ 1 file changed, 3 insertions(+) (limited to 'settings/js') 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'), { -- cgit v1.2.3