From: Raphaël Barrois Date: Wed, 23 Jun 2010 07:30:03 +0000 (+0200) Subject: Fix visibility of emails, groups, death info on profile (Closes #1137) X-Git-Tag: xorg/1.0.0~80 X-Git-Url: http://git.polytechnique.org/?a=commitdiff_plain;h=aa8a2914ec618e14290fa576d53dcc824fbab891;p=platal.git Fix visibility of emails, groups, death info on profile (Closes #1137) Signed-off-by: Raphaël Barrois --- 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'}