mirror of
https://github.com/jcwimer/wrestlingApp
synced 2026-03-25 01:14:43 +00:00
Added logic to delegate tournament access
This commit is contained in:
@@ -49,8 +49,6 @@ class MatchesController < ApplicationController
|
||||
end
|
||||
|
||||
def check_access
|
||||
if current_user != @match.tournament.user
|
||||
redirect_to '/static_pages/not_allowed'
|
||||
end
|
||||
authorize! :manage, @match.tournament
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user