From 06a2c8463be32d78b0756644eb095482c085c7fa Mon Sep 17 00:00:00 2001 From: Phyo Thiha Date: Fri, 13 Dec 2024 14:10:11 +0630 Subject: [PATCH] change validation rule for permissions column --- .../Admin/src/Http/Controllers/Settings/RoleController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/Webkul/Admin/src/Http/Controllers/Settings/RoleController.php b/packages/Webkul/Admin/src/Http/Controllers/Settings/RoleController.php index 76f88ee6d36..185df404603 100755 --- a/packages/Webkul/Admin/src/Http/Controllers/Settings/RoleController.php +++ b/packages/Webkul/Admin/src/Http/Controllers/Settings/RoleController.php @@ -56,7 +56,7 @@ public function store() 'name' => 'required', 'permission_type' => 'required', 'description' => 'required', - 'permissions' => 'required_unless:permission_type,all', + 'permissions' => 'required', ]); Event::dispatch('user.role.create.before');