wiki: Add requirement for alloweditor action to be del or add.

This commit is contained in:
Andre D
2012-10-18 14:13:01 -05:00
committed by Neil Williams
parent 377f3b5a43
commit 2dfa7d1971

View File

@@ -208,7 +208,8 @@ def make_map():
mc('/api/wiki/edit', controller='wikiapi', action='wiki_edit')
mc('/api/wiki/hide', controller='wikiapi', action='wiki_revision_hide')
mc('/api/wiki/revert', controller='wikiapi', action='wiki_revision_revert')
mc('/api/wiki/alloweditor/:act', controller='wikiapi', action='wiki_allow_editor')
mc('/api/wiki/alloweditor/:act', controller='wikiapi',
requirements=dict(act="del|add"), action='wiki_allow_editor')
mc('/wiki/*page', controller='wiki', action='wiki_page')
mc('/wiki/', controller='wiki', action='wiki_page')