X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=templates%2Fskin%2Fcommon.menu.tpl;h=57b687a17ad18f647bb845ca667df5dc8f968187;hb=4d9b63f8ec02d84eabd554234a32718758bf9e21;hp=361bd17d8a09208401e767814daa676f4228991a;hpb=2ca5f0311c9b28e96bf3372435f8f82ae5dbe61f;p=platal.git diff --git a/templates/skin/common.menu.tpl b/templates/skin/common.menu.tpl index 361bd17..57b687a 100644 --- a/templates/skin/common.menu.tpl +++ b/templates/skin/common.menu.tpl @@ -45,13 +45,13 @@ {/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,28 +59,30 @@ -{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 $smarty.session.user->checkPerms('payment')} +{if hasPerm('payment')} {/if} +{if hasPerm('mail')} +{/if} -{if $smarty.session.user->checkPerms('directory_private')} +{if hasPerm('directory_private')} {/if} -{if $smarty.session.user->checkPerms('groups')} +{if hasPerm('groups')} {/if} @@ -97,9 +99,33 @@ - +
+ {xsrf_token_field} + +
+
+ {xsrf_token_field} + +
@@ -113,6 +139,13 @@
Validations
{/if} +{if hasPerm('edit_directory')} + + + + +{/if} + {/if} {* vim:set et sw=2 sts=2 sws=2 enc=utf-8: *}