Skip to content

Commit 72313f4

Browse files
authored
Update Assignment.php
1 parent c69c47f commit 72313f4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Assignment.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ public function removeUsersFromRoles($assignedUsers)
8888
->get()
8989
->each(function ($role) use ($assignedUsers) {
9090
$role->users()
91-
->whereIn("id", $assignedUsers)
91+
->whereIn("id", data_get($assignedUsers, $role->name, []))
9292
->detach();
9393
});
9494
}

0 commit comments

Comments
 (0)