Exemplo n.º 1
0
 public UserContext(User data, bool isAuthorized)
 {
     _idUser       = data.IdUser;
     _data         = data;
     _isAuthorized = isAuthorized;
     _permissions  = new UserPermissions();
 }
Exemplo n.º 2
0
 public void ApplyPermissions(UserPermissions permissions = null)
 {
     _permissions = permissions ?? new UserPermissions();
 }