/**
* Method to define acl dependencies in backend controllers
* <code>
* $this->addAclPermission("name_of_action_with_action_prefix","name_of_assigned_privilege","optionally error message");
* // $this->addAclPermission("indexAction","read","Ops. You have no permission to view that...");
* </code>
*
* @return void
*/
protected function initAcl() { $namespace =
Shopware()->
Snippets()->
getNamespace('backend/shipping/controller'
);
// Read
$this->
addAclPermission('getCostsMatrixAction', 'read',
$namespace->
get('no_list_rights', 'Read access denied.'
));
$this->
addAclPermission('getCountriesAction', 'read',
$namespace->
get('no_list_rights', 'Read access denied.'
));
$this->
addAclPermission('getHolidaysAction', 'read',
$namespace->
get('no_list_rights', 'Read access denied.'
));
$this->
addAclPermission('getPaymentsAction', 'read',
$namespace->
get('no_list_rights', 'Read access denied.'
));
$this->
addAclPermission('getShippingCostsAction', 'read',
$namespace->
get('no_list_rights', 'Read access denied.'
));
// Update
$this->
addAclPermission('updateCostsMatrixAction', 'update',
$namespace->
get('no_update_rights', 'Update access denied.'
));
$this->
addAclPermission('updateDispatchAction', 'update',
$namespace->
get('no_update_rights', 'Update access denied.'
));
// Delete
$this->
addAclPermission('deleteAction', 'delete',
$namespace->
get('no_delete_rights', 'Delete access denied.'
));