1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-24 21:07:17 +00:00

[api2] update repo history limit

still can get limit days if history limit setting not enabled
This commit is contained in:
lian
2016-01-20 11:44:06 +08:00
parent 5ee27c138b
commit fd01c06802
2 changed files with 22 additions and 4 deletions

View File

@@ -1077,10 +1077,7 @@ class RepoHistoryLimit(APIView):
username = request.user.username
# no settings for virtual repo
if repo.is_virtual or \
not config.ENABLE_REPO_HISTORY_SETTING or \
username != repo_owner:
if repo.is_virtual or username != repo_owner:
error_msg = 'Permission denied.'
return api_error(status.HTTP_403_FORBIDDEN, error_msg)