ManageIQ/manageiq-ui-classic

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

Summary

Maintainability
A
0 mins
Test Coverage
A
100%
class ApplicationHelper::Button::ConditionPolicy < ApplicationHelper::Button::ReadOnly
  needs :@sb

  def role_allows_feature?
    role_allows?(:feature => self[:child_id])
  end
end