Skip to content

Commit

Permalink
fix: column 'id' can be ambiguous (#9)
Browse files Browse the repository at this point in the history
  • Loading branch information
iPurpl3x authored Sep 5, 2023
1 parent cba8ba4 commit be8389f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Requirement/InGroup.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,6 @@ public function eventTriggers(): array {
}

public function userSatisfies(User $user, array $settings = []): bool {
return $user->groups()->where('id', $settings['group_id'])->exists();
return $user->groups()->where('groups.id', $settings['group_id'])->exists();
}
}

0 comments on commit be8389f

Please sign in to comment.