app/controllers/recognitions_controller.rb
# Ensure the current user is allowed to edit/update/delete the current recognition
Ensure the current user is allowed to edit/update/delete the current recognition
Ensure the current user is allowed to edit / update / delete the current recognition
def authorize_editor
    redirect_to @recognition, notice: 'You are only allowed to modify your own recognitions' unless can_administrate?(@recognition)
  end
def authorize_editor redirect_to @recognition , notice : 'You are only allowed to modify your own recognitions' unless can_administrate? ( @recognition ) end
Ensure the current user is allowed to edit/update/delete the current recognition
Ensure the current user is allowed to edit / update / delete the current recognition
# rubocop:disable Layout/LineLength # rubocop:enable Layout/LineLength