Ejemplo n.º 1
0
 public static bool HasSLMViewer(this IPrincipal userPrincipal, ApplicationUserManager userManager)
 {
     return(userManager.IsInRole(userPrincipal.GetApplicationUserId(userManager), UserRoles.Viewer));
 }
Ejemplo n.º 2
0
 public static bool IsSLMViewer(this IPrincipal userPrincipal, ApplicationUserManager userManager)
 {
     return(!IsSLMArchitect(userPrincipal, userManager) &&
            userManager.IsInRole(userPrincipal.GetApplicationUserId(userManager), UserRoles.Viewer));
 }
Ejemplo n.º 3
0
 public static bool HasSLMArchitect(this IPrincipal userPrincipal, ApplicationUserManager userManager)
 {
     return(userManager.IsInRole(userPrincipal.GetApplicationUserId(userManager), UserRoles.Architect));
 }
Ejemplo n.º 4
0
 public static bool IsSLMArchitect(this IPrincipal userPrincipal, ApplicationUserManager userManager)
 {
     return(!IsSLMAdministrator(userPrincipal, userManager) &&
            userManager.IsInRole(userPrincipal.GetApplicationUserId(userManager), UserRoles.Architect));
 }