juiste view policy voor een mutation
Some checks failed
linter / quality (push) Failing after 1m6s
tests / ci (8.3) (push) Failing after 49s
tests / ci (8.4) (push) Failing after 1m6s
tests / ci (8.5) (push) Failing after 1m8s

This commit is contained in:
Daan Meijer 2026-07-06 17:11:43 +02:00
parent 1be49133a0
commit dc94c2252c

View File

@ -18,6 +18,12 @@ class MutationPolicy
return $dynamic->participants()->where('user_id', $user->id)->exists();
}
public function view(User $user, Mutation $mutation): bool
{
$ledger = $mutation->ledger;
return $user->can('view', $ledger);
}
/**
* Determine whether the user can update the mutation.
*/