Skip to content

Commit

Permalink
Don't allow _any_ user to create an automatically created page.
Browse files Browse the repository at this point in the history
  • Loading branch information
JordanMilne committed May 15, 2015
1 parent 912b224 commit 366ffc9
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions r2/r2/lib/validator/wiki.py
Original file line number Diff line number Diff line change
Expand Up @@ -316,8 +316,7 @@ def may_not_create(self, page):

page = normalize_page(page)

if (c.is_wiki_mod and
WikiPage.is_automatically_created(page)):
if WikiPage.is_automatically_created(page):
return {'reason': 'PAGE_CREATED_ELSEWHERE'}
elif WikiPage.is_special(page):
if not (c.user_is_admin or
Expand Down

0 comments on commit 366ffc9

Please sign in to comment.