docker/web/app/controllers/api/v1/base_controller.rb
# action: a string describing what action IS NOT allowed
a string describing what action IS NOT allowed
a string describing what action IS NOT allowed
def unauthorized_error(action)
    render status: :forbidden, json: {
      errors: "You are not allowed to #{action}"
    }
  end
def unauthorized_error ( action ) render status : :forbidden , json : { errors : "You are not allowed to #{action}" } end
action: a string describing what action IS NOT allowed
action : a string describing what action IS NOT allowed
action
<not_specific>