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