Database governance built for humans and agents — controlling changes and access across every major database.
Go cicddata-governancedata-maskingdata-securitydatabase-accessdatabase-governancedevopsdevsecopsflywaygitopsliquibasemongodbmysqloraclepostgresqlschema-migrationssecuritysql-clientsqlservertidb
refactor: one less call (#12934)
Danny Xucbe52e7acbeb
diff --git a/backend/api/v1/acl.go b/backend/api/v1/acl.goindex 2ba895bea9..a3c2b2613c 100644--- a/backend/api/v1/acl.go+++ b/backend/api/v1/acl.go@@ -183,18 +183,11 @@ func (in *ACLInterceptor) checkIAMPermission(ctx context.Context, fullMethod strreturn nil}-func isSkippedMethod(fullMethod string, authContext *common.AuthContext) bool {+func (in *ACLInterceptor) doIAMPermissionCheck(ctx context.Context, fullMethod string, req any, user *store.UserMessage, authContext *common.AuthContext) (bool, []string, error) {if auth.IsAuthenticationAllowed(fullMethod, authContext) {- return true+ return true, nil, nil}if authContext.AuthMethod == common.AuthMethodCustom {- return true- }- return false-}--func (in *ACLInterceptor) doIAMPermissionCheck(ctx context.Context, fullMethod string, req any, user *store.UserMessage, authContext *common.AuthContext) (bool, []string, error) {- if isSkippedMethod(fullMethod, authContext) {return true, nil, nil}