Defect #38064 ยป 0001-Do-not-break-when-setting-enabled_module_names-on-a-.patch
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) |