ignore force_prefix for editors

This commit is contained in:
mdipierro
2012-08-02 00:02:45 -05:00
parent ad3f34b8f1
commit 1233eea690
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -1 +1 @@
Version 2.00.0 (2012-08-01 23:49:50) dev
Version 2.00.0 (2012-08-02 00:02:42) dev
+1 -1
View File
@@ -4550,7 +4550,7 @@ class Wiki(object):
if not self.can_edit(page): return self.not_authorized(page)
title_guess = ' '.join(c.capitalize() for c in slug.split('-'))
if not page:
if not slug.startswith(self.force_prefix):
if not (self.can_manage() or slug.startswith(self.force_prefix)):
current.session.flash='slug must have "%s" prefix' \
% self.force_prefix
redirect(URL(args=('_edit',self.force_prefix+slug)))