mirror of
https://github.com/haiwen/seafile-server.git
synced 2025-09-01 15:36:37 +00:00
Return 404 when notification server is disabled (#643)
Co-authored-by: 杨赫然 <heran.yang@seafile.com>
This commit is contained in:
@@ -2508,6 +2508,11 @@ get_jwt_token_cb (evhtp_request_t *req, void *arg)
|
||||
goto out;
|
||||
}
|
||||
|
||||
if (!seaf->notif_mgr) {
|
||||
evhtp_send_reply (req, EVHTP_RES_NOTFOUND);
|
||||
goto out;
|
||||
}
|
||||
|
||||
jwt_token = gen_jwt_token (repo_id, username);
|
||||
if (!jwt_token) {
|
||||
seaf_warning ("Failed to gen jwt token for repo %s\n", repo_id);
|
||||
|
Reference in New Issue
Block a user