diff --git a/pkg/auth/principal.go b/pkg/auth/principal.go index f2a3948fc5fbf24038261165ac84c0ef08da9c04..78da09cb27f493f034720d40d91f33b7b6ce7313 100644 --- a/pkg/auth/principal.go +++ b/pkg/auth/principal.go @@ -3,11 +3,11 @@ package auth import ( "context" + "git.perx.ru/perxis/perxis-go/pkg/data" "git.perx.ru/perxis/perxis-go/pkg/environments" "git.perx.ru/perxis/perxis-go/pkg/members" "git.perx.ru/perxis/perxis-go/pkg/permission" "git.perx.ru/perxis/perxis-go/pkg/roles" - "git.perx.ru/perxis/perxis/util" ) type Principal interface { @@ -62,7 +62,7 @@ func hasEnvironmentAccess(ctx context.Context, envsrv environments.Environments, } for _, ce := range envs { - if envID == ce || util.GlobMatch(envID, ce) { + if envID == ce || data.GlobMatch(envID, ce) { return true } } @@ -76,7 +76,7 @@ func hasEnvironmentAccess(ctx context.Context, envsrv environments.Environments, for _, ce := range envs { for _, al := range aliases { - if al == ce || util.GlobMatch(al, ce) { + if al == ce || data.GlobMatch(al, ce) { return true } }