Skip to content

Commit

Permalink
add id
Browse files Browse the repository at this point in the history
  • Loading branch information
Thiritin committed Aug 14, 2024
1 parent 85510e5 commit 81637a1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/Http/Controllers/Staff/GroupMemberController.php
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ public function update(Group $group, User $member, Request $request)
'level' => new Enum(GroupUserLevel::class),
]);

$requestMember = $group->users()->find($request->user())->pivot;
$requestMember = $group->users()->find($request->user()->id)->pivot;
$this->authorize("update", $requestMember);

$pivot = $group->users()->find($member->id)->pivot;
Expand Down

0 comments on commit 81637a1

Please sign in to comment.