changeset 1717:7b7ec9dccf34

reverted changeset 6cd9347f7cc5
author Jaiditya Mathur <jaiditya.mathur@gmail.com>
date Mon, 20 Aug 2012 00:32:11 +0530
parents 6cd9347f7cc5
children cb93c4257fe7
files MoinMoin/apps/admin/views.py
diffstat 1 files changed, 4 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/apps/admin/views.py	Fri Aug 17 03:26:05 2012 +0530
+++ b/MoinMoin/apps/admin/views.py	Mon Aug 20 00:32:11 2012 +0530
@@ -26,7 +26,6 @@
 from MoinMoin.security import require_permission
 
 @admin.route('/superuser')
-@require_permission(SUPERUSER)
 def index():
     return render_template('admin/index.html', title_name=_(u"Admin"))
 
@@ -36,6 +35,7 @@
 
 
 @admin.route('/userbrowser')
+@require_permission(SUPERUSER)
 def userbrowser():
     """
     User Account Browser
@@ -53,6 +53,7 @@
 
 
 @admin.route('/userprofile/<user_name>', methods=['GET', 'POST', ])
+@require_permission(SUPERUSER)
 def userprofile(user_name):
     """
     Set values in user profile
@@ -119,6 +120,7 @@
 from MoinMoin.config import default as defaultconfig
 
 @admin.route('/wikiconfig', methods=['GET', ])
+@require_permission(SUPERUSER)
 def wikiconfig():
     settings = {}
     for groupname in defaultconfig.options:
@@ -163,6 +165,7 @@
 
 
 @admin.route('/wikiconfighelp', methods=['GET', ])
+@require_permission(SUPERUSER)
 def wikiconfighelp():
     def format_default(default):
         if isinstance(default, defaultconfig.DefaultExpression):