internal/daemon/controller/handlers/sessions: fix dropped error (#3529)

This commit is contained in:
Lars Lehtonen authored and GitHub committed 2023-08-01 11:26:48 -07:00
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)