summaryrefslogtreecommitdiff
path: root/app/controllers/tournaments_controller.rb
diff options
context:
space:
mode:
authorLuke Shumaker <shumakl@purdue.edu>2014-04-29 11:25:23 -0400
committerLuke Shumaker <shumakl@purdue.edu>2014-04-29 11:25:23 -0400
commit0d6f7a3bfbf4c87510a1bcf967b618f98e149d49 (patch)
treee3cd7d5329bd3c04a2fbfc766db34766fab12bc3 /app/controllers/tournaments_controller.rb
parent8aefe73872571ac54738bde71d4da5611659a0cc (diff)
clean up permission system
Diffstat (limited to 'app/controllers/tournaments_controller.rb')
-rw-r--r--app/controllers/tournaments_controller.rb4
1 files changed, 0 insertions, 4 deletions
diff --git a/app/controllers/tournaments_controller.rb b/app/controllers/tournaments_controller.rb
index 0b81dd9..c58eb94 100644
--- a/app/controllers/tournaments_controller.rb
+++ b/app/controllers/tournaments_controller.rb
@@ -210,10 +210,6 @@ class TournamentsController < ApplicationController
params.require(:tournament).require(:stages).require(i.to_s).permit(:scheduling_method, :seeding_method)
end
- def is_owner?(object)
- object.hosts.include?(current_user)
- end
-
# Turn of check_edit, since our #update is flexible
def check_edit
set_tournament