diff options
Diffstat (limited to 'app/models/tournament.rb')
-rw-r--r-- | app/models/tournament.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/app/models/tournament.rb b/app/models/tournament.rb index 8a96dcc..854b8c9 100644 --- a/app/models/tournament.rb +++ b/app/models/tournament.rb @@ -55,6 +55,10 @@ class Tournament < ActiveRecord::Base (not self.scoring_method.try(:empty?)) and (scoring_methods.include? scoring_method) end + def owned_by?(user) + self.hosts.include?(user) + end + # Settings ################################################################# def settings |