app/helpers/license_helper.rb
def enable_auto_project_license?
    resource_for_controller &&
      resource_for_controller.new_record? &&
      logged_in_and_registered? &&
      current_user.person.projects.select(&:default_license).any?
  end
# whether to enable to auto selection of the license based on the selected project
# only enabled if it is a new item, and the logged in person belongs to projects with a default license
whether to enable to auto selection of the license based on the selected project
only enabled if it is a new item, and the logged in person belongs to projects with a default license
whether to enable to auto selection of the license based on the selected project only enabled if it is a new item and the logged in person belongs to projects with a default license
def enable_auto_project_license?
    resource_for_controller &&
      resource_for_controller.new_record? &&
      logged_in_and_registered? &&
      current_user.person.projects.select(&:default_license).any?
  end
def enable_auto_project_license? resource_for_controller && resource_for_controller . new_record? && logged_in_and_registered? && current_user . person . projects . select ( & :default_license ) . any? end
whether to enable to auto selection of the license based on the selected project
only enabled if it is a new item, and the logged in person belongs to projects with a default license
whether to enable to auto selection of the license based on the selected project only enabled if it is a new item and the logged in person belongs to projects with a default license