Company Control

 3 Replies
 0 Subscribed to this topic
 16 Subscribed to this forum
Sort:
Author
Messages
KB
Send Private Message
Posts: 23
I am wondering if anyone has developed any Company Control security rules and would be willing to share an example of a rule that has been written using Company Control.

Thx
Jimmy Chiu
Veteran Member Send Private Message
Posts: 641
Veteran Member
if(user.attributeContains('CompanyControl',lztrim(table.COMPANY)))
'ALL_ACCESS'
else
'NO_ACCESS'
KB
Send Private Message
Posts: 23
Thanks Jimmy for the followup. Did you tie this to an Element or on a table by table basis?
Jimmy Chiu
Veteran Member Send Private Message
Posts: 641
Veteran Member
You can do it either way, form, element and/or files.