Skip to content

Commit

Permalink
Merge pull request bagisto#10390 from phyothiha/issues#10388
Browse files Browse the repository at this point in the history
add permissions array validation rule on store method
  • Loading branch information
devansh-webkul authored Dec 17, 2024
2 parents 45976d3 + 06a2c84 commit 32bba50
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ public function store()
'name' => 'required',
'permission_type' => 'required',
'description' => 'required',
'permissions' => 'required',
]);

Event::dispatch('user.role.create.before');
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,8 @@ class="primary-button"
</x-admin::form.control-group>
<div v-if="permission_type == 'custom'">
<x-admin::form.control-group.error control-name="permissions" />
<x-admin::tree.view
input-type="checkbox"
value-field="key"
Expand Down

0 comments on commit 32bba50

Please sign in to comment.