Restore legacy 403 for unauthenticated match updates
This commit is contained in:
parent
4713a020fa
commit
b02857782f
|
|
@ -3,7 +3,6 @@
|
||||||
class MatchesController < ApplicationController
|
class MatchesController < ApplicationController
|
||||||
before_action :set_match, only: %i[show update]
|
before_action :set_match, only: %i[show update]
|
||||||
before_action :set_group, only: %i[create]
|
before_action :set_group, only: %i[create]
|
||||||
before_action :authenticate_user!, only: %i[create update]
|
|
||||||
before_action :validate_params, only: %i[update]
|
before_action :validate_params, only: %i[update]
|
||||||
before_action -> { require_owner! @match.owner }, only: %i[update]
|
before_action -> { require_owner! @match.owner }, only: %i[update]
|
||||||
before_action -> { require_owner! @group.owner }, only: %i[create]
|
before_action -> { require_owner! @group.owner }, only: %i[create]
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue