| Check User's Role in Agent Before Running Agent |
Mindwatering Incorporated
Tripp Black on 11/02/2005 at 04:53 PM |
Category: Notes Developer Tips
Agents, LotusScript
|
Issue:
Before you let a user run an agent, you want to verify the user has the rights to run the agent by verifying a role.
Solutions:
There are several ways to check/verify this. Each does a piece of the pie.
1. Set agent to run as AgentList or Schedule (Never). Then just hide button that runs the agent with the normal @IsMember formula code when applicable.
2. Check for the role in the agent. The easiest way is to check.
Dim aclcheckflag As Variant
aclcheckflag =Evaluate({@IsMember("[admin]"; @UserRoles)})
If aclcheckflag (0)=1 Then...
previous page
|