From 4810af1eeced1975f74f2231cd119978561dd572 Mon Sep 17 00:00:00 2001 From: Florent Bruneau Date: Mon, 11 Oct 2010 15:58:17 +0200 Subject: [PATCH] Don't show 'report spam' item in menu for user without email account. Signed-off-by: Florent Bruneau --- templates/skin/common.menu.tpl | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) 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} -- 2.1.4