1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-16 23:29:49 +00:00

Fixed public group wiki bug

This commit is contained in:
zhengxie
2013-04-01 14:15:20 +08:00
parent bb35aa7577
commit 6517ede4e5
3 changed files with 8 additions and 1 deletions

View File

@@ -1194,7 +1194,10 @@ def group_wiki(request, group, page_name="home"):
except WikiDoesNotExist:
wiki_exists = False
except WikiPageMissing:
'''create that page for user'''
'''create that page for user if he/she is a group member'''
if not is_group_user(group.id, username):
raise Http404
repo = find_wiki_repo(request, group)
# No need to check whether repo is none, since repo is already created