mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-16 15:19:06 +00:00
Fix bug that couldn't view new created repo on seahub
This commit is contained in:
2
views.py
2
views.py
@@ -373,7 +373,7 @@ def repo_operation_file(request, op, repo_id, obj_id):
|
|||||||
raise Http404
|
raise Http404
|
||||||
|
|
||||||
token = ''
|
token = ''
|
||||||
if repo_ap == 'own':
|
if not repo_ap or repo_ap == 'own':
|
||||||
# people who is not owner visits own repo, go to 404 page
|
# people who is not owner visits own repo, go to 404 page
|
||||||
if not validate_owner(request, repo_id):
|
if not validate_owner(request, repo_id):
|
||||||
raise Http404
|
raise Http404
|
||||||
|
Reference in New Issue
Block a user