Database governance built for humans and agents — controlling changes and access across every major database.
Go cicddata-governancedata-maskingdata-securitydatabase-accessdatabase-governancedevopsdevsecopsflywaygitopsliquibasemongodbmysqloraclepostgresqlschema-migrationssecuritysql-clientsqlservertidb
chore: only check _SELF if including _SELF method (#3193)
Tianzhou (天舟)5493fcc7ccd4
diff --git a/server/acl.go b/server/acl.goindex 53fc31bdae..d8112008ca 100644--- a/server/acl.go+++ b/server/acl.go@@ -83,13 +83,12 @@ func aclMiddleware(s *Server, ce *casbin.Enforcer, next echo.HandlerFunc, readonreturn err} else if isSelf {method += "_SELF"- }-- // Performs the ACL check with _SELF.- pass, err = ce.Enforce(string(role), path, method)- if err != nil {- return echo.NewHTTPError(http.StatusInternalServerError, "Failed to process authorize request.").SetInternal(err)+ // Performs the ACL check with _SELF.+ pass, err = ce.Enforce(string(role), path, method)+ if err != nil {+ return echo.NewHTTPError(http.StatusInternalServerError, "Failed to process authorize request.").SetInternal(err)+ }}}}