add a client side check
This commit is contained in:
parent
97231e64ba
commit
44dbdd9632
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue