mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-03-04 02:31:33 +00:00
remove check_permissions method
This commit is contained in:
@@ -15,7 +15,6 @@ class UserRegistrationsController < Devise::RegistrationsController
|
||||
include Spree::Core::ControllerHelpers::Order
|
||||
include I18nHelper
|
||||
|
||||
before_action :check_permissions, only: [:edit, :update]
|
||||
skip_before_action :require_no_authentication
|
||||
|
||||
before_action :set_checkout_redirect, only: :create
|
||||
@@ -42,12 +41,6 @@ class UserRegistrationsController < Devise::RegistrationsController
|
||||
render_error(message: I18n.t('unknown_error', scope: I18N_SCOPE))
|
||||
end
|
||||
|
||||
protected
|
||||
|
||||
def check_permissions
|
||||
authorize!(:create, resource)
|
||||
end
|
||||
|
||||
private
|
||||
|
||||
def spree_user_params
|
||||
|
||||
Reference in New Issue
Block a user