Example #1
0
 public Boolean Authorizes(RequestedActionOnSubject requestedActionOnSubject)
 {
     return(Authorizes(requestedActionOnSubject.Action, requestedActionOnSubject.Subject));
 }
Example #2
0
 public bool Allows(RequestedActionOnSubject requestedActionOnSubject)
 {
     return(permissions.Any(p => p.Authorizes(requestedActionOnSubject)));
 }