Solved

hide section using role doesnt work

Posted on 2004-04-28
8
212 Views
Last Modified: 2013-12-18
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.
0
Comment
Question by:damoncwk
8 Comments
 
LVL 19

Expert Comment

by:RanjeetRain
ID: 10945686
Tyr this:

!"[Manager]" | !"Anonymous" | "$Webclient"
0
 
LVL 19

Expert Comment

by:madheeswar
ID: 10945800
in Hide when properties,
!@IsMember(@userRoles;"[Manager]")

Try the above. Only persons having Manager role, can view the section.
0
 
LVL 15

Expert Comment

by:Bozzie4
ID: 10946065
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
What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

 

Author Comment

by:damoncwk
ID: 10946405
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
 

Author Comment

by:damoncwk
ID: 10946876
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
 
LVL 31

Accepted Solution

by:
qwaletee earned 125 total points
ID: 10952175
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

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

For users on the Lotus Notes 8 Standard client, this article provides information on checking the Java Heap size and adjusting it to half of your system RAM in attempt to get the Lotus Notes 8.x Standard client to run faster.  I've had to exercise t…
This article covers general Notes 8.5 troubleshooting information including recreating the Notes\Data folder.
This video discusses moving either the default database or any database to a new volume.
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

760 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now