X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;ds=inline;f=templates%2Fskin%2Fcommon.menu.tpl;h=3ef2d7843266bee0e2994450cce74e1f78a57de5;hb=8b8d8e64be3a5fe9fe38a5b23c12cd1aa8529bdd;hp=58004c897abc0fd47047f3a09341775c6ae47dab;hpb=b47cc6f09f0a001d1f00f4263d3b14b4eb4ce379;p=platal.git diff --git a/templates/skin/common.menu.tpl b/templates/skin/common.menu.tpl index 58004c8..3ef2d78 100644 --- a/templates/skin/common.menu.tpl +++ b/templates/skin/common.menu.tpl @@ -1,6 +1,6 @@ {**************************************************************************} {* *} -{* 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 *} @@ -38,20 +38,20 @@ {else} -{if $smarty.session.auth == AUTH_MDP} +{if $smarty.session.auth == AUTH_PASSWD} {elseif $smarty.cookies.ORGaccess} {/if} -{if $smarty.session.user->checkPerms('mail')} +{if hasPerm('mail')} {/if} {if $smarty.session.user->hasProfile()} {/if} -{if $smarty.session.user->checkPerms('directory_private')} +{if hasPerm('directory_private')} {/if} @@ -59,36 +59,48 @@ -{if $smarty.session.user->checkPerms('mail')} +{if hasPerm('mail')} {/if} -{if $smarty.session.user->checkPerms('forums')} +{if hasPerm('forums')} {/if} {if $smarty.session.user->googleapps} {/if} +{if hasPerm('user')} -{if $smarty.session.user->checkPerms('payment')} - {/if} +{if hasPerm('mail')} +{/if} -{if $smarty.session.user->checkPerms('directory_private')} +{if hasPerm('directory_private,edit_directory')} + +{/if} +{if hasPerm('directory_private')} {/if} -{if $smarty.session.user->checkPerms('groups')} +{if hasPerm('groups')} {/if} +{if hasPerm('directory_private') && $smarty.session.user->hasProfile()} + {assign var='profile' value=$smarty.session.user->profile()} + {if $profile->isDeltaTenEnabled(#Profile::DELTATEN_YOUNG#)} + + {/if} +{/if} + + @@ -117,7 +129,7 @@ Droits