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:
@@ -87,8 +87,7 @@ class WeightsController < ApplicationController
|
||||
if params[:tournament]
|
||||
@tournament = Tournament.find(params[:tournament])
|
||||
elsif params[:weight]
|
||||
@weight = Weight.new(weight_params)
|
||||
@tournament = Tournament.find(@weight.tournament_id)
|
||||
@tournament = Tournament.find(params[:weight]["tournament_id"])
|
||||
elsif @weight
|
||||
@tournament = @weight.tournament
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user