Esempio n. 1
0
 public bool HasPermission(PermissionSet perm, int organizationId, int geographyId, Authorization.Flag flags)
 {
     return(Authorization.CheckAuthorization(perm, organizationId, geographyId, this, flags));
 }
Esempio n. 2
0
 public bool HasAnyPermission(Permission perm)
 {
     return(Authorization.CheckAuthorization(new PermissionSet(perm), -1, -1, this,
                                             Authorization.Flag.AnyGeographyAnyOrganization));
 }
Esempio n. 3
0
 public bool HasPermission(PermissionSet perm, Authorization.Flag flags)
 {
     return(Authorization.CheckAuthorization(perm, -1, -1, this, flags));
 }
Esempio n. 4
0
 private bool HasPermission(Permission perm, int organizationId, Authorization.Flag flags)
 {
     return(Authorization.CheckAuthorization(new PermissionSet(perm), organizationId, Organization.RootIdentity, this, flags));
 }