From 6727abe6c36f83f58c13aaa52c01a41b61060067 Mon Sep 17 00:00:00 2001 From: flashwave Date: Sat, 7 Jan 2023 04:47:31 +0000 Subject: [PATCH] Fixed 'view full profile' thing showing up on non-existent users while logged out. --- templates/profile/index.twig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/profile/index.twig b/templates/profile/index.twig index b3eb10c..2b5f87e 100644 --- a/templates/profile/index.twig +++ b/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 %}