User and Admin.
In the XPage I have a button that has a hide when formula that looks like this
if(context.getUser().getRoles().contains('[Admin]')){
return true;
}
return false;
I have also tried
database.queryAccessRoles(@UserName())
But it also have the same effect this takes forever to apply If I add the Admin role to a user.
But if I have a notes form with a field and in that field I add @UserRoles
I just have to reload the form and the new user role apply.
If anybody have an idea how to make the acl change apply also in XPages please feel free to comment.
Inga kommentarer:
Skicka en kommentar