missing delete permission
This commit is contained in:
parent
319fac06ac
commit
420ee127db
@ -39,6 +39,12 @@ class InstallModule
|
|||||||
'description' => 'Update Offline Payments Settings',
|
'description' => 'Update Offline Payments Settings',
|
||||||
]);
|
]);
|
||||||
|
|
||||||
|
$permissions[] = Permission::firstOrCreate([
|
||||||
|
'name' => 'delete-offline-payments-settings',
|
||||||
|
'display_name' => 'Delete Offline Payments Settings',
|
||||||
|
'description' => 'Delete Offline Payments Settings',
|
||||||
|
]);
|
||||||
|
|
||||||
$roles = Role::all()->filter(function ($r) {
|
$roles = Role::all()->filter(function ($r) {
|
||||||
return $r->hasPermission('read-admin-panel');
|
return $r->hasPermission('read-admin-panel');
|
||||||
});
|
});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user