Skip to content

Commit

Permalink
Bug-fix: assign all roles
Browse files Browse the repository at this point in the history
  • Loading branch information
heloufir committed Sep 30, 2022
1 parent 4cc41e1 commit c51fc17
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/Http/Livewire/Administration/UsersDialog.php
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ class="text-xs text-primary-500 hover:text-primary-600 hover:underline"
*/
public function assignAllRoles(): void
{
$this->roles = Permission::all()->pluck('id')->toArray();
$this->roles = Role::all()->pluck('id')->toArray();
}

/**
Expand Down

0 comments on commit c51fc17

Please sign in to comment.