Project

General

Profile

Defect #38064 ยป 0001-Do-not-break-when-setting-enabled_module_names-on-a-.patch

Holger Just, 2022-12-19 21:05

View differences:

app/models/project.rb
842 842
          if user.admin?
843 843
            true
844 844
          else
845
            default_member_role.has_permission?(:select_project_modules)
845
            default_member_role&.has_permission?(:select_project_modules)
846 846
          end
847 847
        else
848 848
          user.allowed_to?(:select_project_modules, project)
    (1-1/1)