From 2539d1f3f89b6bec08840eae86cdc0b416f6cdc1 Mon Sep 17 00:00:00 2001 From: Yoga Pangestu Date: Tue, 24 Feb 2026 14:29:19 +0700 Subject: [PATCH] feat: remove restore and force delete permissions for various entities in ShieldSeeder --- database/seeders/ShieldSeeder.php | 44 ------------------------------- 1 file changed, 44 deletions(-) diff --git a/database/seeders/ShieldSeeder.php b/database/seeders/ShieldSeeder.php index 148cfb7..3dd0e9c 100644 --- a/database/seeders/ShieldSeeder.php +++ b/database/seeders/ShieldSeeder.php @@ -188,10 +188,6 @@ public function run(): void "Create:Chicken", "Update:Chicken", "Delete:Chicken", - "Restore:Chicken", - "ForceDelete:Chicken", - "ForceDeleteAny:Chicken", - "RestoreAny:Chicken", "Replicate:Chicken", "Reorder:Chicken", @@ -200,10 +196,6 @@ public function run(): void "Create:Customer", "Update:Customer", "Delete:Customer", - "Restore:Customer", - "ForceDelete:Customer", - "ForceDeleteAny:Customer", - "RestoreAny:Customer", "Replicate:Customer", "Reorder:Customer", @@ -212,10 +204,6 @@ public function run(): void "Create:DelayedGood", "Update:DelayedGood", "Delete:DelayedGood", - "Restore:DelayedGood", - "ForceDelete:DelayedGood", - "ForceDeleteAny:DelayedGood", - "RestoreAny:DelayedGood", "Replicate:DelayedGood", "Reorder:DelayedGood", @@ -224,10 +212,6 @@ public function run(): void "Create:EggCollection", "Update:EggCollection", "Delete:EggCollection", - "Restore:EggCollection", - "ForceDelete:EggCollection", - "ForceDeleteAny:EggCollection", - "RestoreAny:EggCollection", "Replicate:EggCollection", "Reorder:EggCollection", @@ -236,10 +220,6 @@ public function run(): void "Create:EggPrice", "Update:EggPrice", "Delete:EggPrice", - "Restore:EggPrice", - "ForceDelete:EggPrice", - "ForceDeleteAny:EggPrice", - "RestoreAny:EggPrice", "Replicate:EggPrice", "Reorder:EggPrice", @@ -248,10 +228,6 @@ public function run(): void "Create:Expense", "Update:Expense", "Delete:Expense", - "Restore:Expense", - "ForceDelete:Expense", - "ForceDeleteAny:Expense", - "RestoreAny:Expense", "Replicate:Expense", "Reorder:Expense", @@ -260,10 +236,6 @@ public function run(): void "Create:Feed", "Update:Feed", "Delete:Feed", - "Restore:Feed", - "ForceDelete:Feed", - "ForceDeleteAny:Feed", - "RestoreAny:Feed", "Replicate:Feed", "Reorder:Feed", @@ -272,10 +244,6 @@ public function run(): void "Create:FeedPurchase", "Update:FeedPurchase", "Delete:FeedPurchase", - "Restore:FeedPurchase", - "ForceDelete:FeedPurchase", - "ForceDeleteAny:FeedPurchase", - "RestoreAny:FeedPurchase", "Replicate:FeedPurchase", "Reorder:FeedPurchase", @@ -284,10 +252,6 @@ public function run(): void "Create:Order", "Update:Order", "Delete:Order", - "Restore:Order", - "ForceDelete:Order", - "ForceDeleteAny:Order", - "RestoreAny:Order", "Replicate:Order", "Reorder:Order", @@ -296,10 +260,6 @@ public function run(): void "Create:Unit", "Update:Unit", "Delete:Unit", - "Restore:Unit", - "ForceDelete:Unit", - "ForceDeleteAny:Unit", - "RestoreAny:Unit", "Replicate:Unit", "Reorder:Unit", @@ -308,10 +268,6 @@ public function run(): void "Create:User", "Update:User", "Delete:User", - "Restore:User", - "ForceDelete:User", - "ForceDeleteAny:User", - "RestoreAny:User", "Replicate:User", "Reorder:User" ]