Source/NFX/Security/Permissions.cs
/// <summary>
/// Shortcut method that creates a temp/mock BaseSession object thus checking permission in mock BaseSession context
/// </summary>
Shortcut method that creates a temp/mock BaseSession object thus checking permission in mock BaseSession context
Shortcut method that creates a temp / mock BaseSession object thus checking permission in mock BaseSession context
public bool Check(User user)
            {
              if (user==null || !user.IsAuthenticated) return false;
              var session = new BaseSession(Guid.NewGuid());
              session.User = user;
              return this.Check(session);
            }
public bool Check ( User user ) { if ( user == null || ! user . IsAuthenticated ) return false ; var session = new BaseSession ( Guid . NewGuid ( ) ) ; session . User = user ; return this . Check ( session ) ; }
Shortcut method that creates a temp/mock BaseSession object thus checking permission in mock BaseSession context
Shortcut method that creates a temp / mock BaseSession object thus checking permission in mock BaseSession context
user
User