Exemplo n.º 1
0
 /// <summary>
 /// Returns true if the logged in user is an RO_admin, admin, or if the user has the same UserId as the record
 /// </summary>
 public static bool CanView(this ClaimsPrincipal User, Enrollee enrollee)
 {
     return(User.HasAdminView() || User.CanEdit(enrollee));
 }