You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: organization_parameter.rb
    path of file: ./repos/foreman/app/models/parameters
    
    the code of the file until where you have to start completion: class OrganizationParameter < Parameter
  audited :except => [:priority, :searchable_value], :associated_with => :organization
  validates :name, :uniqueness => {:scope => :reference_id}
  validates :organization, :presence => true

  de
    
  def enforce_permissions(operation)
    # We get called again with the operation being set to create
    return true if operation == "edit" && new_record?
    return true if User.current.allowed_to?("#{operation}_organizations".to_sym)

    errors.add(:base, _("You do not have permission to %s this organization parameter") % operation)
    false
  end
end