allura-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From brond...@apache.org
Subject [6/8] git commit: [#7436] ticket:601 Set allow_edit_prefs to True by default
Date Thu, 12 Jun 2014 19:39:09 GMT
[#7436] ticket:601 Set allow_edit_prefs to True by default


Project: http://git-wip-us.apache.org/repos/asf/allura/repo
Commit: http://git-wip-us.apache.org/repos/asf/allura/commit/ae84a85a
Tree: http://git-wip-us.apache.org/repos/asf/allura/tree/ae84a85a
Diff: http://git-wip-us.apache.org/repos/asf/allura/diff/ae84a85a

Branch: refs/heads/master
Commit: ae84a85a051c60fabe1b56a87fb8b6f37188dc9a
Parents: cc084cf
Author: Igor Bondarenko <jetmind2@gmail.com>
Authored: Thu Jun 12 12:17:43 2014 +0300
Committer: Dave Brondsema <dbrondsema@slashdotmedia.com>
Committed: Thu Jun 12 19:38:42 2014 +0000

----------------------------------------------------------------------
 Allura/allura/controllers/auth.py       | 2 +-
 Allura/allura/templates/user_prefs.html | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/allura/blob/ae84a85a/Allura/allura/controllers/auth.py
----------------------------------------------------------------------
diff --git a/Allura/allura/controllers/auth.py b/Allura/allura/controllers/auth.py
index 7e96cf0..b7b35ae 100644
--- a/Allura/allura/controllers/auth.py
+++ b/Allura/allura/controllers/auth.py
@@ -358,7 +358,7 @@ class PreferencesController(BaseController):
                new_oid=None,
                preferences=None,
                **kw):
-        if asbool(config.get('auth.allow_edit_prefs', False)):
+        if asbool(config.get('auth.allow_edit_prefs', True)):
             if not preferences.get('display_name'):
                 flash("Display Name cannot be empty.", 'error')
                 redirect('.')

http://git-wip-us.apache.org/repos/asf/allura/blob/ae84a85a/Allura/allura/templates/user_prefs.html
----------------------------------------------------------------------
diff --git a/Allura/allura/templates/user_prefs.html b/Allura/allura/templates/user_prefs.html
index 3e7a0d7..83db662 100644
--- a/Allura/allura/templates/user_prefs.html
+++ b/Allura/allura/templates/user_prefs.html
@@ -39,7 +39,7 @@
     {% endblock info %}
 
     {% block edit_prefs_form %}
-      {% if h.asbool(tg.config.get('auth.allow_edit_prefs', False)) %}
+      {% if h.asbool(tg.config.get('auth.allow_edit_prefs', True)) %}
       <form action="update" method="post">
         <fieldset>
           <legend>General and Email Settings</legend>


Mime
View raw message