Skip to content

OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub

alter default role

ulfertsfc6aa534e49a
diff --git a/app/components/work_packages/share/invite_user_form_component.rb b/app/components/work_packages/share/invite_user_form_component.rb
index a70cce5492e..137f462f262 100644
--- a/app/components/work_packages/share/invite_user_form_component.rb
+++ b/app/components/work_packages/share/invite_user_form_component.rb
@@ -40,7 +40,7 @@ module WorkPackages
end
def new_share
- @new_share ||= Member.new(entity: @work_package, roles: [Role.new(builtin: Role::BUILTIN_WORK_PACKAGE_COMMENTER)])
+ @new_share ||= Member.new(entity: @work_package, roles: [Role.new(builtin: Role::BUILTIN_WORK_PACKAGE_VIEWER)])
end
end
end
diff --git a/spec/support/components/work_packages/share_modal.rb b/spec/support/components/work_packages/share_modal.rb
index 3aa5afe51d4..48c063a547d 100644
--- a/spec/support/components/work_packages/share_modal.rb
+++ b/spec/support/components/work_packages/share_modal.rb
@@ -54,7 +54,7 @@ module Components
within modal_element.find('[data-test-selector="op-share-wp-invite-role"]') do
# Open the ActionMenu
- click_button 'Comment'
+ click_button 'View'
find('.ActionListContent', text: role_name).click
end