Skip to content
Snippets Groups Projects
Commit 4c83a4c9 authored by Georg Ehrke's avatar Georg Ehrke
Browse files

add a client side check

parent a5774229
No related branches found
No related tags found
No related merge requests found
......@@ -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;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment