mirror of
https://github.com/zitadel/zitadel.git
synced 2024-12-13 03:24:26 +00:00
fix: check for empty applicationID on assertRoles (#5509)
* fix: check for empty applicationID on assertRoles * remove unintended added file
This commit is contained in:
parent
4baa503fcc
commit
4ca50e0802
@ -635,6 +635,9 @@ func (o *OPStorage) privateClaimsFlows(ctx context.Context, userID string, userG
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (o *OPStorage) assertRoles(ctx context.Context, userID, applicationID string, requestedRoles []string) (*query.UserGrants, map[string]map[string]string, error) {
|
func (o *OPStorage) assertRoles(ctx context.Context, userID, applicationID string, requestedRoles []string) (*query.UserGrants, map[string]map[string]string, error) {
|
||||||
|
if applicationID == "" || len(requestedRoles) == 0 {
|
||||||
|
return nil, nil, nil
|
||||||
|
}
|
||||||
projectID, err := o.query.ProjectIDFromClientID(ctx, applicationID, false)
|
projectID, err := o.query.ProjectIDFromClientID(ctx, applicationID, false)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, nil, err
|
return nil, nil, err
|
||||||
|
Loading…
Reference in New Issue
Block a user