{** * Copyright since 2007 PrestaShop SA and Contributors * PrestaShop is an International Registered Trademark & Property of PrestaShop SA * * NOTICE OF LICENSE * * This source file is subject to the Open Software License (OSL 3.0) * that is bundled with this package in the file LICENSE.md. * It is also available through the world-wide-web at this URL: * https://opensource.org/licenses/OSL-3.0 * If you did not receive a copy of the license and are unable to * obtain it through the world-wide-web, please send an email * to license@prestashop.com so we can send you a copy immediately. * * DISCLAIMER * * Do not edit or add to this file if you wish to upgrade PrestaShop to newer * versions in the future. If you wish to customize PrestaShop for your * needs please refer to https://devdocs.prestashop.com/ for more information. * * @author PrestaShop SA and Contributors * @copyright Since 2007 PrestaShop SA and Contributors * @license https://opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0) *} {if $show_toolbar} {include file="toolbar.tpl" toolbar_btn=$toolbar_btn toolbar_scroll=$toolbar_scroll title=$title}
{block name="leadin"}{/block}
{/if}
{foreach $profiles as $profile} {$profile.name} {/foreach}
{if $form_id} {/if} {assign var=tabsize value=count($tabs)} {foreach $tabs AS $tab} {if $tab.id_tab > $tabsize} {assign var=tabsize value=$tab.id_tab} {/if} {/foreach} {foreach $profiles as $profile}
{if $profile.id_profile != $admin_profile}

{l s='Menu' d='Admin.Advparameters.Feature'}

{assign var=enable_bulk_view value=true} {assign var=enable_bulk_add value=true} {assign var=enable_bulk_edit value=true} {assign var=enable_bulk_delete value=true} {assign var=enable_bulk_all value=true} {if !count($tabs)} {else} {foreach $tabs AS $tab} {assign var=access value=$accesses[$profile.id_profile]} {assign var=result_accesses value=0} {assign var=has_all_rights value=true} {foreach $perms as $perm} {assign var=id_perm value=$id_perms[$perm]} {if $access_edit == 1 && $accesses[$employee_profile_id][$tab.id_tab][$perm]} {else} {assign var=has_all_rights value=false} {assign var=enable_bulk_view value=false} {/if} {assign var=result_accesses value=$result_accesses + $access[$tab.id_tab][$perm]} {/foreach} {if count($tab.children)} {foreach $tab.children AS $child} {if $child.id_parent === $tab.id_tab} {if isset($access[$child.id_tab])} {assign var=is_child value=true} {assign var=result_accesses value=0} {assign var=has_all_rights value=true} {foreach $perms as $perm} {assign var=id_perm value=$id_perms[$perm]} {if $access_edit == 1 && $accesses[$employee_profile_id][$child.id_tab][$perm]} {else} {assign var=has_all_rights value=false} {assign var=enable_bulk_add value=false} {/if} {assign var=result_accesses value=$result_accesses + $access[$child.id_tab][$perm]} {/foreach} {/if} {if count($child.children)} {foreach $child.children AS $subChild} {if isset($access[$subChild.id_tab])} {assign var=is_child value=true} {assign var=result_accesses value=0} {assign var=has_all_rights value=true} {foreach $perms as $perm} {assign var=id_perm value=$id_perms[$perm]} {if $access_edit == 1 && $accesses[$employee_profile_id][$subChild.id_tab][$perm]} {else} {assign var=has_all_rights value=false} {assign var=enable_bulk_edit value=false} {/if} {assign var=result_accesses value=$result_accesses + $access[$subChild.id_tab][$perm]} {/foreach} {if count($subChild.children)} {foreach $subChild.children AS $subsubChild} {if isset($access[$subsubChild.id_tab])} {assign var=is_child value=true} {assign var=result_accesses value=0} {assign var=has_all_rights value=true} {foreach $perms as $perm} {assign var=id_perm value=$id_perms[$perm]} {if $access_edit == 1 && $accesses[$employee_profile_id][$subsubChild.id_tab][$perm]} {else} {assign var=has_all_rights value=false} {assign var=enable_bulk_delete value=false} {/if} {assign var=result_accesses value=$result_accesses + $access[$subsubChild.id_tab][$perm]} {/foreach} {/if} {/foreach} {/if} {/if} {/foreach} {/if} {/if} {/foreach} {/if} {/foreach} {/if}
{l s='No menu' d='Admin.Advparameters.Feature'}
»{$tab.name}
» {$child.name}
    » {$subChild.name}
        » {$subsubChild.name}
{l s='View' d='Admin.Actions'} {l s='Add' d='Admin.Actions'} {l s='Edit' d='Admin.Actions'} {l s='Delete' d='Admin.Actions'} {l s='All' d='Admin.Global'}

{l s='Modules' d='Admin.Global'}

{if !count($modules)} {else} {assign var=enable_bulk_view value=true} {assign var=enable_bulk_configure value=true} {assign var=enable_bulk_uninstall value=true} {foreach from=$modules[$profile.id_profile] item=module key=k} {/foreach} {/if}
{l s='No module has been installed.' d='Admin.Notifications.Warning'}
» {$module.name}
{l s='View' d='Admin.Actions'} {l s='Configure' d='Admin.Actions'} {l s='Uninstall' d='Admin.Actions'}
{else}
{l s='Administrator permissions cannot be modified.' d='Admin.Advparameters.Notification'}
{/if}
{/foreach}