X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=templates%2Finclude%2Ftrombi.tpl;h=29cc27a67e32cfac5572091f398109a4784901ef;hb=4f494e74bb1310de55ce335324a966e31b6c72cb;hp=18829562d5d1162435680a90f80e00c02dc282cb;hpb=7e7ca219eac7b619576dc15a55e7248a1e945e97;p=platal.git
diff --git a/templates/include/trombi.tpl b/templates/include/trombi.tpl
index 1882956..29cc27a 100644
--- a/templates/include/trombi.tpl
+++ b/templates/include/trombi.tpl
@@ -1,6 +1,6 @@
{**************************************************************************}
{* *}
-{* Copyright (C) 2003-2006 Polytechnique.org *}
+{* Copyright (C) 2003-2009 Polytechnique.org *}
{* http://opensource.polytechnique.org/ *}
{* *}
{* This program is free software; you can redistribute it and/or modify *}
@@ -31,7 +31,7 @@
- {if $trombi_admin && $smarty.session.perms eq 'admin' && !$urlmainsite}
+ {if $trombi_admin && hasPerm('admin') && !$urlmainsite}
{icon name=wrench title="[admin]"}
{/if}
@@ -63,4 +63,4 @@
-{* vim:set et sw=2 sts=2 sws=2: *}
+{* vim:set et sw=2 sts=2 sws=2 enc=utf-8: *}