diff --git a/packages/Webkul/Admin/src/Http/Controllers/Settings/RoleController.php b/packages/Webkul/Admin/src/Http/Controllers/Settings/RoleController.php index 1a208608afd..76f88ee6d36 100755 --- a/packages/Webkul/Admin/src/Http/Controllers/Settings/RoleController.php +++ b/packages/Webkul/Admin/src/Http/Controllers/Settings/RoleController.php @@ -56,6 +56,7 @@ public function store() 'name' => 'required', 'permission_type' => 'required', 'description' => 'required', + 'permissions' => 'required_unless:permission_type,all', ]); Event::dispatch('user.role.create.before'); diff --git a/packages/Webkul/Admin/src/Resources/views/settings/roles/create.blade.php b/packages/Webkul/Admin/src/Resources/views/settings/roles/create.blade.php index 675308bd48e..488648d46b9 100644 --- a/packages/Webkul/Admin/src/Resources/views/settings/roles/create.blade.php +++ b/packages/Webkul/Admin/src/Resources/views/settings/roles/create.blade.php @@ -161,7 +161,7 @@ class="primary-button" - +