wiki edit menu pages conditional to login

This commit is contained in:
mdipierro
2012-10-25 08:22:34 -05:00
parent 7ec816bf73
commit a48b008f99
2 changed files with 25 additions and 24 deletions
+1 -1
View File
@@ -1 +1 @@
Version 2.2.1 (2012-10-25 08:17:22) stable Version 2.2.1 (2012-10-25 08:22:25) stable
+1
View File
@@ -5035,6 +5035,7 @@ class Wiki(object):
if True: if True:
submenu = [] submenu = []
menu.append((current.T('[Wiki]'), None, None, submenu)) menu.append((current.T('[Wiki]'), None, None, submenu))
if self.auth.user:
if URL() == URL(controller, function): if URL() == URL(controller, function):
if not str(request.args(0)).startswith('_'): if not str(request.args(0)).startswith('_'):
slug = request.args(0) or 'index' slug = request.args(0) or 'index'