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

Update comments

Klaus Zanders8875fe043447
diff --git a/app/services/authorization.rb b/app/services/authorization.rb
index 0bb6c224659..69adb26bd42 100644
--- a/app/services/authorization.rb
+++ b/app/services/authorization.rb
@@ -39,7 +39,7 @@ module Authorization
Authorization::ProjectQuery.query(user, action)
end
- # Returns all roles a user has in a certain project or globally
+ # Returns all roles a user has in a certain project, for a specific enttiy or globally
def roles(user, project: nil, entity: nil)
if entity
Authorization::UserEntityRolesQuery.query(user, entity)