diff options
author | Luke Shumaker <shumakl@purdue.edu> | 2014-04-06 17:32:34 -0400 |
---|---|---|
committer | Luke Shumaker <shumakl@purdue.edu> | 2014-04-06 17:32:34 -0400 |
commit | 8f1a442b8f647ddca49572c8deb63f035d85ccf8 (patch) | |
tree | b6e4728654062dbd29c02f5b716a7f283370f4f7 /app | |
parent | 353a5dfcc1782744684922b7d41c8030750d1533 (diff) |
I swear I have fixed this before
Diffstat (limited to 'app')
-rw-r--r-- | app/controllers/tournaments_controller.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/tournaments_controller.rb b/app/controllers/tournaments_controller.rb index a9e91b0..2fc82ed 100644 --- a/app/controllers/tournaments_controller.rb +++ b/app/controllers/tournaments_controller.rb @@ -99,7 +99,7 @@ class TournamentsController < ApplicationController format.html { redirect_to @tournament, notice: 'You have joined this tournament.' } format.json { head :no_content } else - format.html { render action: 'permission_denied', status: :forbidden } + format.html { redirect_to @tournament, notice: "You don't have permission to start this tournament." } format.json { render json: "Permission denied", status: :forbidden } end end |