X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=templates%2Fprofile%2Fprofile.tpl;h=13004b4585bc8d85d2f26147df711189701c1485;hb=79270914e952308fb164792b4c1b0879a23ce5d1;hp=c5a2517b686aed5f8f4e04237d017a5d1283f25d;hpb=d82359a556779137f8a90d0312b3098a2db6f482;p=platal.git
diff --git a/templates/profile/profile.tpl b/templates/profile/profile.tpl
index c5a2517..13004b4 100644
--- a/templates/profile/profile.tpl
+++ b/templates/profile/profile.tpl
@@ -47,7 +47,7 @@ $($.closeOnEsc);
{assign var=photo value=$profile->getPhoto(false)}
{if $photo}{/if}
- {if $logged && $view eq 'private' && ( $profile->section|smarty:nodefaults || $profile->getBinets()|smarty:nodefaults || ($owner && $owner->groups(true,true)|smarty:nodefaults))}
+ {if $logged && $profile->isVisible(#ProfileVisibility::VIS_AX#) && ( $profile->section|smarty:nodefaults || $profile->getBinets()|smarty:nodefaults || ($owner && $owner->groups(true,true)|smarty:nodefaults))}