index.tpl:

- use $authentication_has_role instead of checking if $smarty_template
  contains "users_". This makes the code cleaner and avoids problems
  when merging templates to names without "users_".
- check for login template without using needle - that's possible after
  merging the login and users_login template to login.tpl


git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@1139 a1433add-5e2c-0410-b055-b7f2511e0802
pull/2/head
Christian Boltz 15 years ago
parent 80389ec0e3
commit 656b0b0897

@ -1,9 +1,9 @@
<!-- {$smarty.template} -->
{strip}
{include file="header.tpl"}
{if $smarty_template|needle:"login" neq 1}
{if $smarty_template != 'login'}
{config_load file="menu.conf" section=$smarty_template}
{if $smarty_template|needle:"users_" eq 1}
{if $authentication_has_role.user}
{include file='users_menu.tpl'}
{else}
{include file='menu.tpl'}

Loading…
Cancel
Save