8 private readonly
string[] privileges;
9 private readonly
int count;
17 this.privileges = Privileges;
18 this.count = Privileges?.Length ?? 0;
29 for (
int i = 0; i < this.count; i++)
Authorization based on multiple privileges.
MultiplePrivileges(string[] Privileges)
Authorization based on multiple privileges.
bool IsAuthorized(T Resource, IHasPrivileges User)
Checks if an user or object is authorized to perform an action.
Basic authorization interface for objects of type T .
Interface for objects that have privileges.
bool HasPrivilege(string Privilege)
If the object has a given privilege.