mirror of
https://github.com/zitadel/zitadel.git
synced 2025-08-12 01:47:33 +00:00
fix: Inituser (#386)
* fix: init user only create change pw event if pw set * fix: init user only create change pw event if pw set * fix: tests
This commit is contained in:
@@ -47,6 +47,9 @@ func (repo *UserGrantRepo) SearchMyZitadelPermissions(ctx context.Context) ([]st
|
||||
return nil, err
|
||||
}
|
||||
|
||||
if grant == nil {
|
||||
return []string{}, nil
|
||||
}
|
||||
permissions := &grant_model.Permissions{Permissions: []string{}}
|
||||
for _, role := range grant.Roles {
|
||||
roleName, ctxID := auth.SplitPermission(role)
|
||||
|
Reference in New Issue
Block a user