{**************************************************************************}
{* *}
-{* Copyright (C) 2003-2010 Polytechnique.org *}
+{* Copyright (C) 2003-2011 Polytechnique.org *}
{* http://opensource.polytechnique.org/ *}
{* *}
{* This program is free software; you can redistribute it and/or modify *}
<div class="contact {if !$registered || $dead }grayed{/if}"
- {if $registered}title="fiche mise à jour le {$profile->last_change|date_format}"{/if}>
+ {if $profile->last_change}title="fiche mise à jour le {$profile->last_change|date_format}"{/if}>
<div class="identity">
{if $withAuth}
<div class="photo">
<div class="nom">
{if $profile->isFemale()}•{/if}
- {if !$dead && $registered}<a href="profile/{$profile->hrid()}" class="popup2">{/if}
+ {if !$dead && ($withAuth || $registered)}<a href="profile/{$profile->hrid()}" class="popup2">{/if}
{$profile->directory_name}
- {if !$dead && $registered}</a>{/if}
+ {if !$dead && ($withAuth || $registered)}</a>{/if}
</div>
<div class="edu">
</div>
{/if}
- {if hasPerm('admin') || $smarty.session.user->canEdit($profile)}
+ {if hasPerm('admin') || ($smarty.session.user->canEdit($profile) && !$smarty.session.user->isMe($user))}
<div>
[{if hasPerm('admin') && $hasowner}{if !$registered && !$dead}
<a href="marketing/private/{$user->login()}">{*
*}{icon name=wrench title="administrer user"}</a>{/if}{*
*}{if hasPerm('admin') || $smarty.session.user->canEdit($profile)}{*
*}<a href="profile/edit/{$user->login()}">{*
- *}{icon name=user_edit title="modifier la fiche"}</a>{*
+ *}{icon name=user_edit title="modifier la fiche"}</a>{/if}{*
+ *}{if hasPerm('admin,edit_directory')}{*
*}<a href="profile/ax/{$user->login()}">{*
*}{icon name=user_gray title="fiche AX"}</a>{/if}]
</div>