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