add a client side check
This commit is contained in:
parent
a5774229a1
commit
4c83a4c918
1 changed files with 3 additions and 0 deletions
|
@ -160,6 +160,9 @@ var UserList={
|
||||||
}
|
}
|
||||||
if(user){
|
if(user){
|
||||||
var checkHandeler=function(group){
|
var checkHandeler=function(group){
|
||||||
|
if(user==OC.currentUser && group=='admin'){
|
||||||
|
return false;
|
||||||
|
}
|
||||||
if(!isadmin && checked.length == 1 && checked[0] == group){
|
if(!isadmin && checked.length == 1 && checked[0] == group){
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue