mirror of
https://github.com/jcwimer/wrestlingApp
synced 2026-03-25 01:14:43 +00:00
Fixed check_access bug
This commit is contained in:
@@ -80,8 +80,7 @@ class SchoolsController < ApplicationController
|
||||
if params[:tournament]
|
||||
@tournament = Tournament.find(params[:tournament])
|
||||
elsif params[:school]
|
||||
@school = School.new(school_params)
|
||||
@tournament = Tournament.find(@school.tournament_id)
|
||||
@tournament = Tournament.find(params[:school]["tournament_id"])
|
||||
elsif @school
|
||||
@tournament = @school.tournament
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user