class ApplicationHelper::Button::MiqAeNamespaceEdit < ApplicationHelper::Button::MiqAeDomainLock
  needs :@record

  def visible?
    super || editable_domain?(@record)
  end
end

class ApplicationHelper::Button::MiqAeNamespaceEdit < ApplicationHelper::Button::MiqAeDomain
  needs :@record

  def disabled?
    @error_message = N_('Domain is Locked.') if super
    @error_message.present?
  end

  def visible?
    super || editable_domain?(@record)
  end
end

Fix the found error by modifying the inheritance hierarchy
Fix the found error by modifying the inheritance hierarchy
