From aa8a2914ec618e14290fa576d53dcc824fbab891 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Rapha=C3=ABl=20Barrois?= Date: Wed, 23 Jun 2010 09:30:03 +0200 Subject: [PATCH] Fix visibility of emails, groups, death info on profile (Closes #1137) MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Raphaël Barrois --- templates/profile/profile.tpl | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/templates/profile/profile.tpl b/templates/profile/profile.tpl index 1c8c058..3056871 100644 --- a/templates/profile/profile.tpl +++ b/templates/profile/profile.tpl @@ -44,7 +44,7 @@ function chgMainWinLoc(strPage) {assign var=photo value=$profile->getPhoto(false)} {if $photo}Photo de {$profile->fullName()}{/if} - {if $logged && ( $profile->section|smarty:nodefaults || $profile->getBinets()|smarty:nodefaults || ($owner && $owner->groups()|smarty:nodefaults))} + {if $logged && $view eq 'private' && ( $profile->section|smarty:nodefaults || $profile->getBinets()|smarty:nodefaults || ($owner && $owner->groups()|smarty:nodefaults))}

À l'X…

{if $profile->section}
Section : {$profile->section}
{/if} @@ -52,7 +52,7 @@ function chgMainWinLoc(strPage) {if $binets|@count}
Binet{if count($binets) > 1}s{/if} : {', '|implode:$profile->getBinetsNames()}
{/if} - {if $owner} + {if $owner && $view eq 'private'} {assign var=groups value=$owner->groupNames(true)} {if $groups|@count}
Groupe{if count($groups) > 1}s{/if} et institution{if count($groups) > 1}s{/if} X :
@@ -115,7 +115,7 @@ function chgMainWinLoc(strPage) {/if}
- {if $logged} + {if $logged && $view eq 'private'}
Fiche mise à jour
le {$profile->last_change|date_format} @@ -124,9 +124,9 @@ function chgMainWinLoc(strPage) {* 121634816 is Profile::PHONE_LINK_PROFILE | Profile::PHONE_TYPE_ANY = 0x7400000 *} {assign var=phones value=$profile->getPhones(121634816)} - {if $logged || count($phones) > 0} + {if ($logged && $view eq 'private') || count($phones) > 0}
- {if $logged} + {if $logged && $view eq 'private'}