Skip to content
Snippets Groups Projects
Commit 28d80079 authored by Alena Petraki's avatar Alena Petraki
Browse files

Правки импортов

parent 678af3c5
No related branches found
No related tags found
No related merge requests found
...@@ -3,11 +3,11 @@ package auth ...@@ -3,11 +3,11 @@ package auth
import ( import (
"context" "context"
"git.perx.ru/perxis/perxis-go/pkg/data"
"git.perx.ru/perxis/perxis-go/pkg/environments" "git.perx.ru/perxis/perxis-go/pkg/environments"
"git.perx.ru/perxis/perxis-go/pkg/members" "git.perx.ru/perxis/perxis-go/pkg/members"
"git.perx.ru/perxis/perxis-go/pkg/permission" "git.perx.ru/perxis/perxis-go/pkg/permission"
"git.perx.ru/perxis/perxis-go/pkg/roles" "git.perx.ru/perxis/perxis-go/pkg/roles"
"git.perx.ru/perxis/perxis/util"
) )
type Principal interface { type Principal interface {
...@@ -62,7 +62,7 @@ func hasEnvironmentAccess(ctx context.Context, envsrv environments.Environments, ...@@ -62,7 +62,7 @@ func hasEnvironmentAccess(ctx context.Context, envsrv environments.Environments,
} }
for _, ce := range envs { for _, ce := range envs {
if envID == ce || util.GlobMatch(envID, ce) { if envID == ce || data.GlobMatch(envID, ce) {
return true return true
} }
} }
...@@ -76,7 +76,7 @@ func hasEnvironmentAccess(ctx context.Context, envsrv environments.Environments, ...@@ -76,7 +76,7 @@ func hasEnvironmentAccess(ctx context.Context, envsrv environments.Environments,
for _, ce := range envs { for _, ce := range envs {
for _, al := range aliases { for _, al := range aliases {
if al == ce || util.GlobMatch(al, ce) { if al == ce || data.GlobMatch(al, ce) {
return true return true
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment