wiki edit menu pages conditional to login
This commit is contained in:
@@ -1 +1 @@
|
|||||||
Version 2.2.1 (2012-10-25 08:17:22) stable
|
Version 2.2.1 (2012-10-25 08:22:25) stable
|
||||||
|
|||||||
@@ -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'
|
||||||
|
|||||||
Reference in New Issue
Block a user