mirror of
https://github.com/zitadel/zitadel.git
synced 2025-08-23 09:38:08 +00:00
fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! feat(permissions): Addeding system user support for permission check v2
This commit is contained in:
@@ -147,14 +147,17 @@ func addGetSystemUserRolesFuncToCtx(ctx context.Context, systemUserRoleMap []Rol
|
||||
var systemUserAuthParams *SystemUserAuthParams
|
||||
chann := make(chan struct{}, 1)
|
||||
return func(ctx context.Context) *SystemUserAuthParams {
|
||||
chann <- struct{}{}
|
||||
if systemUserAuthParams != nil {
|
||||
return systemUserAuthParams
|
||||
}
|
||||
|
||||
chann <- struct{}{}
|
||||
defer func() {
|
||||
<-chann
|
||||
close(chann)
|
||||
}()
|
||||
if systemUserAuthParams != nil {
|
||||
return systemUserAuthParams
|
||||
}
|
||||
|
||||
systemUserAuthParams = &SystemUserAuthParams{
|
||||
MemberType: make([]int32, len(ctxData.SystemMemberships)),
|
||||
|
Reference in New Issue
Block a user