minor changes from aaronw's review
This commit is contained in:
parent
e784d10d2e
commit
1bce0c15ba
@ -100,6 +100,8 @@ class MediaGoblinApp(object):
|
||||
|
||||
# Check if authentication plugin is enabled and respond accordingly.
|
||||
self.auth = check_auth_enabled()
|
||||
if not self.auth:
|
||||
app_config['allow_comments'] = False
|
||||
|
||||
# Set up storage systems
|
||||
self.public_store, self.queue_store = setup_storage()
|
||||
|
@ -86,7 +86,7 @@
|
||||
<p>{{ media.description_html }}</p>
|
||||
{% endautoescape %}
|
||||
{% if comments %}
|
||||
{% if app_config['allow_comments'] and auth %}
|
||||
{% if app_config['allow_comments'] %}
|
||||
<a
|
||||
{% if not request.user %}
|
||||
href="{{ request.urlgen('mediagoblin.auth.login') }}"
|
||||
|
Loading…
x
Reference in New Issue
Block a user