1
0
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:
2015-12-31 01:56:10 +00:00
parent 44b5970104
commit c9ff63548b
4 changed files with 6 additions and 9 deletions

View File

@@ -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