X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=templates%2Finclude%2Ftips.tpl;h=334fdbf3406f8d9514ff9a0af9f14c830d818761;hb=a8b4ccb6c163277c49fb92427a7bb4ace8469660;hp=cba139f70c0e17c255ac9cbcc9073311df4b219d;hpb=74ce6c78a70c1eee0e90fc04fa755f30926d1493;p=platal.git diff --git a/templates/include/tips.tpl b/templates/include/tips.tpl index cba139f..334fdbf 100644 --- a/templates/include/tips.tpl +++ b/templates/include/tips.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 *} @@ -26,7 +26,7 @@ {/if} {icon name=lightbulb} {if !$tips.special} Astuce : {$tips.titre} - {if $smarty.session.perms->hasFlag('admin') && !$tips.special && !$nochange} + {if hasPerm('admin') && !$tips.special && !$nochange} {icon name="page_edit" title="Editer"} {/if} {else}