mirror of
https://github.com/jcwimer/wrestlingApp
synced 2026-04-04 13:43:48 +00:00
Fixed check_access bug
This commit is contained in:
@@ -47,8 +47,8 @@ class MatchesController < ApplicationController
|
||||
end
|
||||
|
||||
def check_access
|
||||
if current_user != @match.tournament.user
|
||||
redirect_to '/static_pages/not_allowed'
|
||||
if current_user != @match.tournament.user
|
||||
redirect_to '/static_pages/not_allowed'
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user