diff MoinMoin/apps/admin/views.py @ 1720:ea19b98d4f94

Admin menu lock for non-admin users
author Jaiditya Mathur <jaiditya.mathur@gmail.com>
date Mon, 20 Aug 2012 02:14:18 +0530
parents 7b7ec9dccf34
children ff503e7ea7a0 7324a1d71443
line wrap: on
line diff
--- a/MoinMoin/apps/admin/views.py	Mon Aug 20 01:15:03 2012 +0530
+++ b/MoinMoin/apps/admin/views.py	Mon Aug 20 02:14:18 2012 +0530
@@ -26,6 +26,7 @@
 from MoinMoin.security import require_permission
 
 @admin.route('/superuser')
+@require_permission(SUPERUSER)
 def index():
     return render_template('admin/index.html', title_name=_(u"Admin"))