Table of Contents

Class PermissionHelper

Namespace
ArcanaDevelopment.adTempus.Shared
Assembly
ArcanaDevelopment.adTempus.Shared.dll

Contains helper methods for working with permissions.

public static class PermissionHelper
Inheritance
object
PermissionHelper

Methods

CanPerform(IEnumerable<int>, SecurityPermission)

Determines whether a set of permissions includes the requested permission or SecurityPermission.FullControl.

public static bool CanPerform(IEnumerable<int> permissionSet, SecurityPermission requestedAction)

Parameters

NameTypeDescription
permissionSet IEnumerable<int>

The set of permissions to check against.

requestedAction SecurityPermission

The permission being requested.

Returns

bool

True if the permissionSet contains either the requestedAction or SecurityPermission.FullControl; False otherwise.