summaryrefslogtreecommitdiff
path: root/app/models/match.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/models/match.rb')
-rw-r--r--app/models/match.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/app/models/match.rb b/app/models/match.rb
index ed21f78..f1c32fe 100644
--- a/app/models/match.rb
+++ b/app/models/match.rb
@@ -14,6 +14,10 @@ class Match < ActiveRecord::Base
# winner:references
# not validated
+ def owned_by?(user)
+ self.tournament_stage.owned_by?(user)
+ end
+
##
# Returns whether or not all the statistics have been collected
# such that the match may be considered finished.