You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@allura.apache.org by br...@apache.org on 2014/06/13 20:34:49 UTC
[07/17] git commit: [#7436] ticket:601 Set allow_edit_prefs to True
by default
[#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/db/7406
Commit: ae84a85a051c60fabe1b56a87fb8b6f37188dc9a
Parents: cc084cf
Author: Igor Bondarenko <je...@gmail.com>
Authored: Thu Jun 12 12:17:43 2014 +0300
Committer: Dave Brondsema <db...@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>