X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;ds=sidebyside;f=templates%2Fxnet%2Fskin.tpl;h=b8a29af3da2270650e791a5f8085e2f77147e947;hb=c76545c351fae4e2298624ff9ee5bf854dc5a5b6;hp=73d879b7173c30ac7370f74277efda1a6dafc35e;hpb=c12cc82e1d97b51e19b294942ea9450a34d929cd;p=platal.git diff --git a/templates/xnet/skin.tpl b/templates/xnet/skin.tpl index 73d879b..b8a29af 100644 --- a/templates/xnet/skin.tpl +++ b/templates/xnet/skin.tpl @@ -1,6 +1,6 @@ {**************************************************************************} {* *} -{* Copyright (C) 2003-2009 Polytechnique.org *} +{* Copyright (C) 2003-2010 Polytechnique.org *} {* http://opensource.polytechnique.org/ *} {* *} {* This program is free software; you can redistribute it and/or modify *} @@ -40,12 +40,6 @@ {include core=plpage.header.tpl} - - {javascript name=overlib} {include file=skin/common.bandeau.head.tpl}
@@ -116,15 +110,16 @@ {/if} {/foreach} {/foreach} - {assign var=asso_id value=$asso->id} + {if t($asso)}{assign var=asso_id value=$asso->id}{/if} + {if t($smarty.session.suid)}{assign var=suid value=true}{else}{assign var=suid value=false}{/if} {if $asso && $is_admin || - ($smarty.session.suid && ($smarty.session.suid.perms->hasFlag('admin') || + ($suid && ($smarty.session.suid.perms->hasFlag('admin') || $smarty.session.suid.may_update[$asso_id]))} -