Skip to content

Commit 14964a1

Browse files
author
manu
committed
N15, activate transversal access
1 parent 28d9117 commit 14964a1

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed

Version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.8.1
1+
1.8.2

internal/services/token-provider.go

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -73,11 +73,10 @@ func (issuer *TokenIssuer) GenerateUserToken(groups []string, username string, e
7373
current := time.Now().Add(duration)
7474
url, _ := url.Parse(issuer.PublicApiServerURL)
7575

76-
/*
77-
if hasAdminAccess || hasApplicationAccess || hasOpsAccess {
78-
utils.Log.Info().Msgf("The user %s will have transversal access ( admin: %v, application: %v, ops: %v )", username, hasAdminAccess, hasApplicationAccess, hasOpsAccess)
79-
auths = []*types.Project{}
80-
}*/
76+
if hasAdminAccess || hasApplicationAccess || hasOpsAccess {
77+
utils.Log.Info().Msgf("The user %s will have transversal access ( admin: %v, application: %v, ops: %v )", username, hasAdminAccess, hasApplicationAccess, hasOpsAccess)
78+
auths = []*types.Project{}
79+
}
8180

8281
// Create the Claims
8382
claims := types.AuthJWTClaims{

0 commit comments

Comments
 (0)