+ public function isTournamentCrew(Tournament $tournament) {
+ return $this->isTournamentAdmin($tournament) || $this->isTournamentMonitor($tournament);
+ }
+
+ public function isTournamentMonitor(Tournament $tournament) {
+ foreach ($tournament->participants as $participant) {
+ if ($participant->user_id == $this->id) {
+ return in_array('monitor', $participant->roles);
+ }
+ }
+ return false;
+ }
+