hide section using role doesnt work

Hi,
I tried to hide a section which is set to be hidden when the following is true
!"[Manager]"

however even users with no role set in ACL can see the section.
Anything missing?
Thanks.
damoncwkAsked:
Who is Participating?
 
qwaleteeConnect With a Mentor Commented:
Hide?  Or disable?

To hide:
    @UserRoles = "[Manager]"
    !@UserRoles = "[Manager]"

To disable, compte for display as follows:
    "[Manager]"
    @If(@UserRoles = "[Manager]"; "Managers may not edit this section"; @UserName)
0
 
RanjeetRainCommented:
Tyr this:

!"[Manager]" | !"Anonymous" | "$Webclient"
0
 
madheeswarCommented:
in Hide when properties,
!@IsMember(@userRoles;"[Manager]")

Try the above. Only persons having Manager role, can view the section.
0
Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

 
Bozzie4Commented:
The formula should compute to a user, group or role.  You can't use negations here.

So if you want to hide it for managers, you must give access to everybody EXCEPT managers (let's suppose you give everybody else the role Plebs)

"[Plebs]"

cheers,

Tom
0
 
damoncwkAuthor Commented:
Hi,
I want to hide one section from the manager and another section
from all others.

So i make it "[manager]" for the former one
while !"[manager]" for all others.

I only define a role of manager in the ACL and
nth else there.
0
 
damoncwkAuthor Commented:
Tom,
What if I need to hide the section based on
a field value, lets say field1!= "Yes"?

And why can't negation be used here?
thanks.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.