Beispiel #1
0
        public bool Authorized(Role role)
        {
            //Check if user is Authentified
            if (!User.Identity.IsAuthenticated)
            {
                return(false);
            }
            AdherentStolon adherentStolon = GetActiveAdherentStolon();

            return(adherentStolon.Authorized(role));
        }