AgileVentures/MetPlus_PETS

View on GitHub
app/helpers/company_people_helper.rb

Summary

Maintainability
A
0 mins
Test Coverage
module CompanyPeopleHelper
  def disable_company_admin?(company_person, role)

    # Disable the check_box for the company admin role if this person
    # is the sole admin for the company (return true to disable).

    return false unless role == CompanyRole::ROLE[:CA]
    company_person.sole_company_admin?
  end
end