1
0
mirror of https://github.com/haiwen/seafile-server.git synced 2025-09-04 08:54:39 +00:00

Return 404 when notification server is disabled (#643)

Co-authored-by: 杨赫然 <heran.yang@seafile.com>
This commit is contained in:
feiniks
2024-02-01 16:31:59 +08:00
committed by GitHub
parent 2d3513a631
commit 1e4790b3a2
2 changed files with 6 additions and 2 deletions

View File

@@ -728,8 +728,7 @@ func getJWTTokenCB(rsp http.ResponseWriter, r *http.Request) *appError {
repoID := vars["repoid"]
if !option.EnableNotification {
err := fmt.Errorf("notification server is not enabled")
return &appError{err, "", http.StatusInternalServerError}
return &appError{nil, "", http.StatusNotFound}
}
user, appErr := validateToken(r, repoID, false)