From 7baac43cbb7d813e5c8d48abca71899ceb2a15e3 Mon Sep 17 00:00:00 2001 From: Absurdon Date: Wed, 18 Oct 2017 21:26:25 +0200 Subject: [PATCH] Fixing bug in match proposals, that prevents admins from checking them --- app/controllers/match_proposals_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/match_proposals_controller.rb b/app/controllers/match_proposals_controller.rb index 2c345d1..28004a0 100644 --- a/app/controllers/match_proposals_controller.rb +++ b/app/controllers/match_proposals_controller.rb @@ -1,7 +1,7 @@ class MatchProposalsController < ApplicationController before_filter :get_match def index - raise AccessError unless @match.user_in_match?(cuser) + raise AccessError unless cuser.admin? || @match.user_in_match?(cuser) end def new