From: Florent Bruneau Date: Mon, 11 Oct 2010 13:58:17 +0000 (+0200) Subject: Don't show 'report spam' item in menu for user without email account. X-Git-Tag: xorg/1.0.1~62 X-Git-Url: http://git.polytechnique.org/?a=commitdiff_plain;h=4810af1eeced1975f74f2231cd119978561dd572;p=platal.git Don't show 'report spam' item in menu for user without email account. Signed-off-by: Florent Bruneau --- diff --git a/templates/skin/common.menu.tpl b/templates/skin/common.menu.tpl index 58004c8..b5f598d 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}