Skip to content

Commit

Permalink
corr updated/created event
Browse files Browse the repository at this point in the history
  • Loading branch information
NatachaH committed Feb 24, 2021
1 parent f00e7dc commit 95e9153
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Traits/HasAccess.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ protected static function bootHasAccess()
// Request for many roles
if(config('access-control.manyRoles') && request()->has('roles'))
{
$event = $model->hasAnyRole() ? 'created' : 'updated';
$event = $model->hasAnyRole() ? 'updated' : 'created';
$sync = $model->roles()->sync(request()->roles);
if(!empty(array_filter($sync)))
{
Expand Down

0 comments on commit 95e9153

Please sign in to comment.