From f7cd2c695a27bbb6d3dc1a0cd09234af4997a15f Mon Sep 17 00:00:00 2001 From: denisdulici Date: Fri, 3 Apr 2020 09:53:35 +0300 Subject: [PATCH] forgot to attach permissions --- modules/OfflinePayments/Listeners/InstallModule.php | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/modules/OfflinePayments/Listeners/InstallModule.php b/modules/OfflinePayments/Listeners/InstallModule.php index e8ca88460..8fa5510f0 100644 --- a/modules/OfflinePayments/Listeners/InstallModule.php +++ b/modules/OfflinePayments/Listeners/InstallModule.php @@ -26,7 +26,10 @@ class InstallModule protected function updatePermissions() { - $this->createModuleSettingPermission('offline-payments', 'read'); - $this->createModuleSettingPermission('offline-payments', 'update'); + $this->attachPermissionsToAllRoles([ + $this->createModuleSettingPermission('offline-payments', 'read'), + $this->createModuleSettingPermission('offline-payments', 'update'), + $this->createModuleSettingPermission('offline-payments', 'delete'), + ]); } }