mirror of
https://github.com/reddit-archive/reddit.git
synced 2026-01-29 00:38:11 -05:00
wiki: Add uri variants for alloweditor.
This commit is contained in:
@@ -356,7 +356,8 @@ class WikiApiController(WikiController):
|
||||
page=VWikiPage('page'),
|
||||
act=VOneOf('act', ('del', 'add')),
|
||||
user=VExistingUname('username'))
|
||||
@api_doc(api_section.wiki, uri='/api/wiki/alloweditor/{act}')
|
||||
@api_doc(api_section.wiki, uri='/api/wiki/alloweditor/{act}',
|
||||
uri_variants=['/api/wiki/alloweditor/%s' % act for act in ('del', 'add')])
|
||||
def POST_wiki_allow_editor(self, act, page, user):
|
||||
if not user:
|
||||
self.handle_error(404, 'UNKNOWN_USER')
|
||||
|
||||
Reference in New Issue
Block a user