mirror of
https://github.com/grafana/grafana.git
synced 2024-11-26 02:40:26 -06:00
Else statement
This commit is contained in:
parent
6cf1efdcc4
commit
21220c2cca
@ -15,14 +15,14 @@ func NewNamespaceAuthorizer(cfg *setting.Cfg) authzlib.AuthorizeFunc {
|
||||
claims.CloudNamespaceFormatter,
|
||||
authzlib.WithIDTokenNamespaceAccessCheckerOption(true),
|
||||
)
|
||||
} else {
|
||||
na = authzlib.NewNamespaceAccessChecker(
|
||||
claims.OrgNamespaceFormatter,
|
||||
authzlib.WithDisableAccessTokenNamespaceAccessCheckerOption(),
|
||||
authzlib.WithIDTokenNamespaceAccessCheckerOption(true),
|
||||
)
|
||||
}
|
||||
|
||||
na = authzlib.NewNamespaceAccessChecker(
|
||||
claims.OrgNamespaceFormatter,
|
||||
authzlib.WithDisableAccessTokenNamespaceAccessCheckerOption(),
|
||||
authzlib.WithIDTokenNamespaceAccessCheckerOption(true),
|
||||
)
|
||||
|
||||
return authzlib.NamespaceAuthorizationFunc(
|
||||
na,
|
||||
authzlib.MetadataStackIDExtractor(authzlib.DefaultStackIDMetadataKey),
|
||||
|
Loading…
Reference in New Issue
Block a user