Fixed 'view full profile' thing showing up on non-existent users while logged out.
This commit is contained in:
parent
047d225669
commit
6727abe6c3
1 changed files with 1 additions and 1 deletions
|
@ -81,7 +81,7 @@
|
||||||
{% set show_profile_fields = profile_is_editing ? perms.edit_profile : profile_fields|length > 0 %}
|
{% set show_profile_fields = profile_is_editing ? perms.edit_profile : profile_fields|length > 0 %}
|
||||||
{% set show_background_settings = profile_is_editing and perms.edit_background %}
|
{% set show_background_settings = profile_is_editing and perms.edit_background %}
|
||||||
{% set show_birthdate = profile_is_editing and perms.edit_birthdate %}
|
{% set show_birthdate = profile_is_editing and perms.edit_birthdate %}
|
||||||
{% set show_sidebar = current_user is not defined or show_profile_fields or show_background_settings %}
|
{% set show_sidebar = show_profile_fields or show_background_settings %}
|
||||||
|
|
||||||
{% if show_sidebar %}
|
{% if show_sidebar %}
|
||||||
<div class="profile__content__side">
|
<div class="profile__content__side">
|
||||||
|
|
Loading…
Reference in a new issue