Created
April 23, 2014 17:25
-
-
Save andrerpena/11225001 to your computer and use it in GitHub Desktop.
Example of checking static access control
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// checking permission... | |
if (AccessControl.HasPermission(ac => ac.Matters.Participants.Add)) | |
{ | |
// the current user or group has access to the specificed action or field | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment