diff --git a/seahub/wiki/views.py b/seahub/wiki/views.py index 70e97d1e2f..5e5ea3034f 100644 --- a/seahub/wiki/views.py +++ b/seahub/wiki/views.py @@ -92,8 +92,11 @@ def slug(request, slug, file_path="home.md"): try: fs = FileShare.objects.get(repo_id=wiki.repo_id, path='/') except FileShare.DoseNotExist: - fs = FileShare.objects.create_dir_link(wiki.username, repo_id, '/', - permission='view_download', org_id=org_id) + fs = FileShare.objects.create_dir_link(wiki.username, wiki.repo_id, '/', + permission='view_download') + wiki.permission = 'public' + wiki.save() + is_public_wiki = True return render(request, "wiki/wiki.html", { "wiki": wiki,