mirror of
https://github.com/ENSL/ensl.org.git
synced 2025-01-13 13:21:29 +00:00
Fixing bug in match proposals, that prevents admins from checking them
This commit is contained in:
parent
357bbb846b
commit
7baac43cbb
1 changed files with 1 additions and 1 deletions
|
@ -1,7 +1,7 @@
|
||||||
class MatchProposalsController < ApplicationController
|
class MatchProposalsController < ApplicationController
|
||||||
before_filter :get_match
|
before_filter :get_match
|
||||||
def index
|
def index
|
||||||
raise AccessError unless @match.user_in_match?(cuser)
|
raise AccessError unless cuser.admin? || @match.user_in_match?(cuser)
|
||||||
end
|
end
|
||||||
|
|
||||||
def new
|
def new
|
||||||
|
|
Loading…
Reference in a new issue