From: Thomas Minvielle Date: Sun, 27 Apr 2014 10:27:01 +0000 (+0200) Subject: Fix profile view when not logged in. X-Git-Tag: xorg/1.1.13~15^2~2 X-Git-Url: http://git.polytechnique.org/?p=platal.git;a=commitdiff_plain;h=80b0570b39f06ff6f0536dd70668e6b444edb4af Fix profile view when not logged in. --- diff --git a/templates/profile/profile.tpl b/templates/profile/profile.tpl index 20acccd..91af9a1 100644 --- a/templates/profile/profile.tpl +++ b/templates/profile/profile.tpl @@ -105,7 +105,7 @@ $($.closeOnEsc);
{if $profile->isFemale()}•{/if} {if $view->isVisible(#Visibility::EXPORT_PRIVATE#)}{$profile->private_name}{else}{$profile->public_name}{/if} - {if ( hasPerm('admin') || $smarty.session.user->canEdit($profile)) && $view->isVisible(#Visibility::EXPORT_PRIVATE#)} + {if $logged && ( hasPerm('admin') || $smarty.session.user->canEdit($profile)) && $view->isVisible(#Visibility::EXPORT_PRIVATE#)} ({$profile->ax_id}) {/if}