ManageIQ/manageiq-ui-classic

View on GitHub
app/helpers/application_helper/button/rbac_user_copy.rb

Summary

Maintainability
A
0 mins
Test Coverage
A
100%
class ApplicationHelper::Button::RbacUserCopy < ApplicationHelper::Button::Basic
  needs :@record

  def disabled?
    @error_message = _('Super Administrator can not be copied') if @record.super_admin_user?
    @error_message.present?
  end
end