Fix request.user==None error
If one isn't logged in and views the profile of a user without media, one gets a problem, because request.user is None and has no _id attribute. Fix this.
This commit is contained in:
parent
fafec72740
commit
762d4a0c48
@ -145,7 +145,7 @@
|
|||||||
{% include "mediagoblin/utils/feed_link.html" %}
|
{% include "mediagoblin/utils/feed_link.html" %}
|
||||||
</div>
|
</div>
|
||||||
{% else %}
|
{% else %}
|
||||||
{% if request.user._id == user._id %}
|
{% if request.user and (request.user._id == user._id) %}
|
||||||
<div class="profile_showcase empty_space">
|
<div class="profile_showcase empty_space">
|
||||||
<p>
|
<p>
|
||||||
{% trans -%}
|
{% trans -%}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user