Skip to content

Commit

Permalink
Update Assignment.php
Browse files Browse the repository at this point in the history
  • Loading branch information
mikebronner committed Jul 6, 2023
1 parent c69c47f commit 72313f4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Assignment.php
Expand Up @@ -88,7 +88,7 @@ public function removeUsersFromRoles($assignedUsers)
->get()
->each(function ($role) use ($assignedUsers) {
$role->users()
->whereIn("id", $assignedUsers)
->whereIn("id", data_get($assignedUsers, $role->name, []))
->detach();
});
}
Expand Down

0 comments on commit 72313f4

Please sign in to comment.