Hi folks,I have a role created called Admin which gives various rights, etc…! I have assigned it to a certain individual (namely myself!). I have an action button created that I want to hide from anyone else apart from anyone who has the Admin role. In the designer under the Action properties, I have clicked on the hide when paragraph is true and also the following formula in the formula window:
!@Contains(@UserRoles ; “[Admin]”)
Its not working…is this correct??? Am I doing something wrong??? Any help would be appreciated, thanks!
Subject: Roles problem
Mickey, is the database on a server or on your local? If it is on local, then roles do not work unless it is a replica, or perhaps a copy, of a server-based db, and you have ‘Enforce consistent ACL’ activated.
Subject: RE: Roles problem
Hi Jerry,I have it on a server!! Not sure if the “enforce consistent ACL” was clicked or not…any way of checking??
Subject: Roles problem
I always use @isnotmember(“[Admin]”;@userroles) which works fine, but not sure whether the @contains doesn’t work at all.
Also, check that you do actually have the role - if you add yourself to the role it doesn’t always give you the role straight away, a restart of the notes client may be needed.
Dan
Subject: RE: Roles problem
And just to point out something that’s caught me out a few times, that’s a restart of all Notes clients. If you’ve got both Notes and Designer running, you’ll need to close both of them.
Subject: RE: Roles problem
Thanks Guys,
There was nothing wrong with the code, it was as was pointed out…a complete restart of both client and designer was needed! (Notes is so much fun!!)
Subject: All you should have had to do…
was close all open sessions (in all clients) against that db – but still, sometimes that doesn’t work, and a restart is required. (It just shouldn’t be!)
Subject: RE: All you should have had to do…
Check Consistent ECL thing &Use this :
@IsNotMember(“[Admin]”; @UserRoles)
This will definitely work.