Fixed 'view full profile' thing showing up on non-existent users while logged out.

master 20230107.1
flash 4 weeks ago
parent 047d225669
commit 6727abe6c3
  1. 2
      templates/profile/index.twig

@ -81,7 +81,7 @@
{% 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_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 %}
<div class="profile__content__side">

Loading…
Cancel
Save