public static DemandUserHasRight ( AuthorizationCheck authCheck, bool redirectIfUnauthorized ) : void | ||
authCheck | AuthorizationCheck | |
redirectIfUnauthorized | bool | /// If true and user does not have rights, redirects to the login page or homepage. /// If false and user does not have rights, throws a security exception. /// |
return | void |
Security::DemandUserHasRight ( Rights right, bool redirectToLoginPage ) : void |