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

pull/3536/head
Lars Lehtonen 3 years ago committed by GitHub
parent 91b74a04d6
commit ecadeaee2d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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)

Loading…
Cancel
Save