fixed permissions
This commit is contained in:
parent
96b7481123
commit
9df01b2900
|
|
@ -159,8 +159,8 @@ class PermissionRepo
|
||||||
private function getContentPermissions()
|
private function getContentPermissions()
|
||||||
{
|
{
|
||||||
$routes = ['pages_index', 'pages_create', 'pages_show', 'pages_update', 'pages_delete'];
|
$routes = ['pages_index', 'pages_create', 'pages_show', 'pages_update', 'pages_delete'];
|
||||||
$items = $this->getPermissionList('setting', $routes);
|
$items = $this->getPermissionList('page', $routes);
|
||||||
return hook_filter('role.setting_permissions', $items);
|
return hook_filter('role.page_permissions', $items);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -41,6 +41,7 @@ return [
|
||||||
'currencies_index' => 'Currencies',
|
'currencies_index' => 'Currencies',
|
||||||
'languages_index' => 'Languages',
|
'languages_index' => 'Languages',
|
||||||
'design_index' => 'Page Builder',
|
'design_index' => 'Page Builder',
|
||||||
|
'design_footer_index' => 'Footer Builder',
|
||||||
'categories_index' => 'Categories',
|
'categories_index' => 'Categories',
|
||||||
'products_index' => 'Products',
|
'products_index' => 'Products',
|
||||||
'products_trashed' => 'Trashed',
|
'products_trashed' => 'Trashed',
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,18 @@
|
||||||
|
<?php
|
||||||
|
/**
|
||||||
|
* page.php
|
||||||
|
*
|
||||||
|
* @copyright 2022 opencart.cn - All Rights Reserved
|
||||||
|
* @link http://www.guangdawangluo.com
|
||||||
|
* @author Edward Yang <yangjin@opencart.cn>
|
||||||
|
* @created 2022-08-02 14:22:41
|
||||||
|
* @modified 2022-08-02 14:22:41
|
||||||
|
*/
|
||||||
|
|
||||||
|
return [
|
||||||
|
'pages_index' => 'Index',
|
||||||
|
'pages_create' => 'Create',
|
||||||
|
'pages_show' => 'Detail',
|
||||||
|
'pages_update' => 'Edit',
|
||||||
|
'pages_delete' => 'Delete'
|
||||||
|
];
|
||||||
|
|
@ -12,4 +12,5 @@
|
||||||
return [
|
return [
|
||||||
'settings_index' => 'Setting',
|
'settings_index' => 'Setting',
|
||||||
'design_index' => 'Design Builder',
|
'design_index' => 'Design Builder',
|
||||||
|
'design_footer_index' => 'Design Footer',
|
||||||
];
|
];
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue