wiki edit menu pages conditional to login

This commit is contained in:
mdipierro committed 2012-10-25 08:22:34 -05:00
1 parent 0d9e5985e4
commit c94c192e17
2 files changed
+2 -1

No files matched your search

+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'