mirror of
https://github.com/haiwen/seafile-server.git
synced 2025-08-31 23:19:36 +00:00
Fix get repo status. (#252)
This commit is contained in:
@@ -375,7 +375,7 @@ check_permission (HttpServer *htp_server, const char *repo_id, const char *usern
|
||||
|
||||
if (strcmp(op, "upload") == 0) {
|
||||
int status = seaf_repo_manager_get_repo_status(seaf->repo_mgr, repo_id);
|
||||
if (status != REPO_STATUS_NORMAL)
|
||||
if (status != REPO_STATUS_NORMAL && status != -1)
|
||||
return EVHTP_RES_FORBIDDEN;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user