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

Add descriptions for roles

Klaus Zanders0dcdd58426b9
diff --git a/app/models/sharing_strategies/project_query_strategy.rb b/app/models/sharing_strategies/project_query_strategy.rb
index 09cb2b6973f..574a41ec392 100644
--- a/app/models/sharing_strategies/project_query_strategy.rb
+++ b/app/models/sharing_strategies/project_query_strategy.rb
@@ -32,13 +32,17 @@ module SharingStrategies
role_mapping = ProjectQueryRole.pluck(:builtin, :id).to_h
[
- { label: I18n.t("sharing.project_queries.permissions.edit"),
+ {
+ label: I18n.t("sharing.project_queries.permissions.edit"),
value: role_mapping[Role::BUILTIN_PROJECT_QUERY_EDIT],
- description: I18n.t("sharing.project_queries.permissions.edit_description") },
- { label: I18n.t("sharing.project_queries.permissions.view"),
+ description: I18n.t("sharing.project_queries.permissions.edit_description")
+ },
+ {
+ label: I18n.t("sharing.project_queries.permissions.view"),
value: role_mapping[Role::BUILTIN_PROJECT_QUERY_VIEW],
description: I18n.t("sharing.project_queries.permissions.view_description"),
- default: true }
+ default: true
+ }
]
end
diff --git a/config/locales/en.yml b/config/locales/en.yml
index 9a297cefc28..5ce8012c322 100644
--- a/config/locales/en.yml
+++ b/config/locales/en.yml
@@ -3688,9 +3688,9 @@ en:
description: "This project list has not been shared with anyone yet. Only you can access this list."
permissions:
view: "View"
- view_description: "TODO: Add me"
+ view_description: "Can view this project list."
edit: "Edit"
- edit_description: "TODO: Add me as well"
+ edit_description: "Can view, share and edit this project list."
working_days:
info: >
Days that are not selected are skipped when scheduling work packages (and not included in the day count).