X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=templates%2Finclude%2Ftrombi.tpl;h=e49bf6f15a2fb014e92528d821455c19ad110641;hb=ff95a30266c7194bdff34f749121d43130f08b65;hp=83192b9b90b1e43d1cc30ea1f1d65ae99ad95631;hpb=a7de4ef724d1a3b0bf978a50ce7cc9d23412c7a0;p=platal.git diff --git a/templates/include/trombi.tpl b/templates/include/trombi.tpl index 83192b9..e49bf6f 100644 --- a/templates/include/trombi.tpl +++ b/templates/include/trombi.tpl @@ -1,6 +1,6 @@ {**************************************************************************} {* *} -{* Copyright (C) 2003-2007 Polytechnique.org *} +{* Copyright (C) 2003-2008 Polytechnique.org *} {* http://opensource.polytechnique.org/ *} {* *} {* This program is free software; you can redistribute it and/or modify *} @@ -31,7 +31,7 @@  [ PHOTO ] - {if $trombi_admin && $smarty.session.perms eq 'admin' && !$urlmainsite} + {if $trombi_admin && hasPerm('admin') && !$urlmainsite} {icon name=wrench title="[admin]"} {/if}