ManageIQ/manageiq-ui-classic

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

Summary

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

  def disabled?
    @error_message = _('Default Administrator can not be deleted') if @record.userid == 'admin'
    @error_message.present?
  end
end