ServiceStack.RequiresAnyRoleAttribute.HasAnyRoles C# (CSharp) Method

HasAnyRoles() public method

public HasAnyRoles ( IAuthSession session ) : bool
session IAuthSession
return bool
        public bool HasAnyRoles(IAuthSession session)
        {
            return this.RequiredRoles
                .Any(requiredRole => session != null
                    && session.HasRole(requiredRole));
        }

Same methods

RequiresAnyRoleAttribute::HasAnyRoles ( IRequest req, IAuthSession session, IAuthRepository userAuthRepo = null ) : bool