internal/daemon/controller/handlers/sessions: fix dropped error (#3529)
This commit is contained in:
1 parent
91b74a04d6
commit
ecadeaee2d
1 file changed
+3
@@ -149,6 +149,9 @@ func (s Service) ListSessions(ctx context.Context, req *pbs.ListSessionsRequest)
|
||||
scopeIds = map[string]*scopes.ScopeInfo{authResults.Scope.Id: authResults.Scope}
|
||||
} else {
|
||||
scopeIds, err = authResults.ScopesAuthorizedForList(ctx, req.GetScopeId(), resource.Session)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
}
|
||||
|
||||
listPerms := authResults.ACL().ListPermissions(scopeIds, resource.Session, IdActions, authResults.UserId)
|
||||
|
||||
Reference in new issue
Block a user