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:
@@ -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)
|
||||
|
Reference in New Issue
Block a user