Database governance built for humans and agents — controlling changes and access across every major database.
Go cicddata-governancedata-maskingdata-securitydatabase-accessdatabase-governancedevopsdevsecopsflywaygitopsliquibasemongodbmysqloraclepostgresqlschema-migrationssecuritysql-clientsqlservertidb
fix: fixed wrong response status (#299)
Luke Zhou3f797612f0d7
diff --git a/server/acl.go b/server/acl.goindex e61687a913..615b0fc192 100644--- a/server/acl.go+++ b/server/acl.go@@ -111,7 +111,7 @@ func isUpdatingSelf(ctx context.Context, c echo.Context, s *Server, curPrincipalif err != nil {if common.ErrorCode(err) == common.NotFound {msg := fmt.Sprintf("Activity ID not found: %d", activityID)- httpErr := echo.NewHTTPError(http.StatusUnauthorized, msg)+ httpErr := echo.NewHTTPError(http.StatusNotFound, msg)return false, httpErr}httpErr := echo.NewHTTPError(http.StatusInternalServerError, defaultErrMsg).SetInternal(err)@@ -134,7 +134,7 @@ func isUpdatingSelf(ctx context.Context, c echo.Context, s *Server, curPrincipalif err != nil {if common.ErrorCode(err) == common.NotFound {msg := fmt.Sprintf("Bookmark ID not found: %d", bookmarkID)- return false, echo.NewHTTPError(http.StatusUnauthorized, msg)+ return false, echo.NewHTTPError(http.StatusNotFound, msg)}httpErr := echo.NewHTTPError(http.StatusInternalServerError, defaultErrMsg).SetInternal(err)return false, httpErr@@ -156,7 +156,7 @@ func isUpdatingSelf(ctx context.Context, c echo.Context, s *Server, curPrincipalif err != nil {if common.ErrorCode(err) == common.NotFound {msg := fmt.Sprintf("Inbox ID not found: %d", inboxID)- return false, echo.NewHTTPError(http.StatusUnauthorized, msg)+ return false, echo.NewHTTPError(http.StatusNotFound, msg)}return false, echo.NewHTTPError(http.StatusInternalServerError, defaultErrMsg).SetInternal(err)}