diff options
author | Rasmus Larsson <flame@constantine.(none)> | 2011-07-09 15:12:00 +0200 |
---|---|---|
committer | Rasmus Larsson <flame@constantine.(none)> | 2011-07-09 15:12:00 +0200 |
commit | 13677ef97a24fea19fe8df1cce4812c18623d88f (patch) | |
tree | ba6ff42f13be8c2503cd57481b6234115ef98fea /mediagoblin/views.py | |
parent | e6fd112d429d1fcc5994ff19c61bd67367a33ce5 (diff) | |
download | mediagoblin-13677ef97a24fea19fe8df1cce4812c18623d88f.tar.lz mediagoblin-13677ef97a24fea19fe8df1cce4812c18623d88f.tar.xz mediagoblin-13677ef97a24fea19fe8df1cce4812c18623d88f.zip |
Added configuration variable to toggle registrations, if disabled the registration page redirects to index and no link to register is shown
Diffstat (limited to 'mediagoblin/views.py')
-rw-r--r-- | mediagoblin/views.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/mediagoblin/views.py b/mediagoblin/views.py index 5b6d9773..6145484b 100644 --- a/mediagoblin/views.py +++ b/mediagoblin/views.py @@ -14,6 +14,7 @@ # You should have received a copy of the GNU Affero General Public License # along with this program. If not, see <http://www.gnu.org/licenses/>. +from mediagoblin import mg_globals from mediagoblin.util import render_to_response from mediagoblin.db.util import DESCENDING @@ -23,7 +24,8 @@ def root_view(request): return render_to_response( request, 'mediagoblin/root.html', - {'media_entries': media_entries}) + {'media_entries': media_entries, + 'allow_registration': mg_globals.app_config["allow_registration"]}) def simple_template_render(request): |