Skip to content

Instantly share code, notes, and snippets.

@andrerpena
Created April 23, 2014 17:25
Show Gist options
  • Save andrerpena/11225001 to your computer and use it in GitHub Desktop.
Save andrerpena/11225001 to your computer and use it in GitHub Desktop.
Example of checking static access control
// 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