Check if permission key exists?


Author
Message
Aaron Young
Aaron Young
StrataFrame VIP (1.4K reputation)StrataFrame VIP (1.4K reputation)StrataFrame VIP (1.4K reputation)StrataFrame VIP (1.4K reputation)StrataFrame VIP (1.4K reputation)StrataFrame VIP (1.4K reputation)StrataFrame VIP (1.4K reputation)StrataFrame VIP (1.4K reputation)StrataFrame VIP (1.4K reputation)
Group: StrataFrame Users
Posts: 277, Visits: 1.1K

Hi,

Is there a way of checking if a permission key exists? I don't mean whether a permission is granted or denied but rather whether the PermissionKey exists before calling SecurityBasics.CurrentUser.GetPermission.

Thanks,

Aaron


Trent Taylor
Trent Taylor
StrataFrame Developer (33K reputation)StrataFrame Developer (33K reputation)StrataFrame Developer (33K reputation)StrataFrame Developer (33K reputation)StrataFrame Developer (33K reputation)StrataFrame Developer (33K reputation)StrataFrame Developer (33K reputation)StrataFrame Developer (33K reputation)StrataFrame Developer (33K reputation)
Group: StrataFrame Developers
Posts: 6.6K, Visits: 7K
The easiest thing would just be to called a scalar method to return a count from within the SFSPermissions table.  If you use the RBS classes it will just return the default action that you have set if it is not found (i.e. Grant or Deny).
GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search