Managing the control of flow of the code based on the role is the responsibility of the developer, not of IBM Notes. How? here’s the simple code snippet for you.
Dim theRole As String
Set acl = db.ACL
Set ACLEntry = acl.GetFirstEntry
theRole = “AuditOfficer”
If ( ACLEntry.IsRoleEnabled( theRole ) …