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
Ruby agile-developmentangularbcfboardsbug-trackerganttgantt-chartifcissue-trackerjira-alternativekanbanopenprojectproduct-managementproject-managementproject-planningroadmaprubyscrumtimelineworkflows
Add `github_integration` module permissions to `WorkPackageRole`s
Aaron Contreras41e1aaab20c6
diff --git a/modules/github_integration/app/seeders/common.yml b/modules/github_integration/app/seeders/common.ymlnew file mode 100644index 00000000000..94b63fdcdf8--- /dev/null+++ b/modules/github_integration/app/seeders/common.yml@@ -0,0 +1,39 @@+#-- copyright+# OpenProject is an open source project management software.+# Copyright (C) 2012-2023 the OpenProject GmbH+#+# This program is free software; you can redistribute it and/or+# modify it under the terms of the GNU General Public License version 3.+#+# OpenProject is a fork of ChiliProject, which is a fork of Redmine. The copyright follows:+# Copyright (C) 2006-2013 Jean-Philippe Lang+# Copyright (C) 2010-2013 the ChiliProject Team+#+# This program is free software; you can redistribute it and/or+# modify it under the terms of the GNU General Public License+# as published by the Free Software Foundation; either version 2+# of the License, or (at your option) any later version.+#+# This program is distributed in the hope that it will be useful,+# but WITHOUT ANY WARRANTY; without even the implied warranty of+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the+# GNU General Public License for more details.+#+# You should have received a copy of the GNU General Public License+# along with this program; if not, write to the Free Software+# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.+#+# See COPYRIGHT and LICENSE files for more details.+#++++modules_permissions:+ github_integration:+ - role: :default_role_work_package_editor+ add:+ - :show_github_content+ - role: :default_role_work_package_commenter+ add:+ - :show_github_content+ - role: :default_role_work_package_viewer+ add:+ - :show_github_contentdiff --git a/spec/seeders/root_seeder_standard_edition_spec.rb b/spec/seeders/root_seeder_standard_edition_spec.rbindex 0abba43c48e..0e659bfd2fe 100644--- a/spec/seeders/root_seeder_standard_edition_spec.rb+++ b/spec/seeders/root_seeder_standard_edition_spec.rb@@ -85,7 +85,8 @@ RSpec.describe RootSeeder,expect(work_package_editor_role.permissions).to include(:view_work_packages, # from common basic data:view_own_time_entries, # from costs module- :view_file_links # from storages module+ :view_file_links, # from storages module+ :show_github_content # from github_integration module)member_role = root_seeder.seed_data.find_reference(:default_role_member)expect(member_role.permissions).to include(