Fixing bug in match proposals, that prevents admins from checking them

This commit is contained in:
Absurdon 2017-10-18 21:26:25 +02:00
parent 357bbb846b
commit 7baac43cbb

View file

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