mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-18 16:36:15 +00:00
fix get fileshare for wiki (#5865)
This commit is contained in:
@@ -182,7 +182,7 @@ def slug(request, slug, file_path="home.md"):
|
||||
break
|
||||
|
||||
try:
|
||||
fs = FileShare.objects.get(repo_id=wiki.repo_id, path='/')
|
||||
fs = FileShare.objects.filter(repo_id=wiki.repo_id, path='/').first()
|
||||
except FileShare.DoesNotExist:
|
||||
fs = FileShare.objects.create_dir_link(wiki.username, wiki.repo_id, '/',
|
||||
permission='view_download')
|
||||
|
Reference in New Issue
Block a user