$this->
addAclPermission('createRule', 'save', "You're not allowed to save a rule."
);
$this->
addAclPermission('editRule', 'save', "You're not allowed to save a rule."
);
$this->
addAclPermission('deleteRule', 'delete', "You're not allowed to delete a rule."
);
} /**
* Disable template engine for all actions
*/
public function preDispatch() { if (!\
in_array($this->
Request()->
getActionName(),
['index', 'load'
])) { $this->
Front()->
Plugins()->
Json()->
setRenderer(true
);
} } /**
* Function to get all active payment-means and the ruleSets
*/
public function getPaymentsAction() { try { $builder =
$this->
get('models'
)->
createQueryBuilder();
$builder->
select(['payment', 'ruleSets'
])