Hello friends
i am trying ti give permission for vendor to access my addon tpl. how can be possible it with addon install time.
it works when i'm writing code in directly in /app/schemas/permissions/vendor_multivendor.php then its works:
code is:
return array(
'default_permission' => false,
'controllers' => array (
'auth' => array (
'permissions' => true,
),
'index' => array (
'permissions' => true,
),
'elf_connector' => array (
'permissions' => true,
),
'test' => array (
'modes' => array (
'add' => array (
'permissions' => true
),
'delete' => array (
'permissions' => true
),
'manage' => array (
'permissions' => true
),
'update' => array (
'permissions' => true
),
),
'permissions' => true,
),
'profiles' => array (
'modes' => array (
'update_cards' => array (
'permissions' => false
),
'delete_profile' => array (
'permissions' => false
),
'delete_card' => array (
'permissions' => false
),
'request_usergroup' => array (
'permissions' => false
),
....etc
but it can possible with addon install time. i tried it with it app/addon/test/schemas/permissions/vendor_multivendor.post.php but its not work.
What code do you use in the vendor_multivendor.post.php file? It should be similar to:
$schema[‘controllers’][‘test’] = array(
‘modes’ => array (
‘add’ => array (
‘permissions’ => true
),
‘delete’ => array (
‘permissions’ => true
),
‘manage’ => array (
‘permissions’ => true
),
‘update’ => array (
‘permissions’ => true
),
),
‘permissions’ => true,
);
return $schema;
and do not forget to clear system cache