Skip to content

Commit

Permalink
Fix is_player logic
Browse files Browse the repository at this point in the history
  • Loading branch information
kearfy committed May 14, 2024
1 parent 001b915 commit 007a692
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -369,9 +369,9 @@ function useData({
$registration;
SELECT * FROM $registration.out.tournament_path ?? [];
$auth IN $registration.players.id;
$auth IN $registration.in.players;
$auth IN $registration.out.organiser.managers[?role IN ['owner', 'administrator', 'event_manager']].user;
SELECT * FROM fn::team::compute_eligable_players($registration.in.id, type::thing('event', $slug), true);
SELECT * FROM fn::team::compute_eligable_players($registration.in.players, type::thing('event', $slug), true);
`,
{
slug,
Expand Down

0 comments on commit 007a692

Please sign in to comment.