mirror of
https://github.com/jcwimer/wrestlingApp
synced 2026-04-04 05:43:47 +00:00
Revert "Eager load users and delegates for tournaments, eager load delegates and tournament for schools"
This reverts commit 911faceb7c.
Permissions to edit a wrestler are not working in production.
This commit is contained in:
@@ -49,6 +49,6 @@ class MatchesController < ApplicationController
|
||||
end
|
||||
|
||||
def check_access
|
||||
authorize! :manage, Tournament.where(:id => @match.tournament.id).includes(:delegates,:user).first
|
||||
authorize! :manage, @match.tournament
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user