Show ax_id on profile for admins.
authorThomas Minvielle <thomas.minvielle@polytechnique.org>
Sat, 8 Feb 2014 23:19:33 +0000 (00:19 +0100)
committerThomas Minvielle <thomas.minvielle@polytechnique.org>
Sat, 8 Feb 2014 23:19:33 +0000 (00:19 +0100)
templates/profile/profile.tpl

index c585736..ff67147 100644 (file)
@@ -96,7 +96,8 @@ $($.closeOnEsc);
   <div id="fiche_identite" class="part">
     <div class="civilite">
       {if $profile->isFemale()}&bull;{/if}
-        {if $view->isVisible(#Visibility::EXPORT_PRIVATE#)}{$profile->private_name}{else}{$profile->public_name}{/if}
+      {if $view->isVisible(#Visibility::EXPORT_PRIVATE#)}{$profile->private_name}{else}{$profile->public_name}{/if}
+      {if hasPerm('admin') || $smarty.session.user->canEdit($profile)} {$profile->ax_id}{/if}
 
       {if $logged}
         &nbsp;{if !$profile->isDead()}<a href="vcard/{$owner->login()}.vcf">{*