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

Merge branch 'bug/44850-capabilities-for-anonymous-user-are-not-available-via-api' of https://github.com/opf/openproject into bug/44850-capabilities-for-anonymous-user-are-not-available-via-api

Dmitrii65ba7ddeb3d8
diff --cc app/models/principals/scopes/not_builtin.rb
index bed6a86e387,bed6a86e387..aeafd8f22c5
--- a/app/models/principals/scopes/not_builtin.rb
+++ b/app/models/principals/scopes/not_builtin.rb
@@@ -42,11 -42,11 +42,6 @@@ module Principals::Scope
AnonymousUser.name,
DeletedUser.name])
end
--
-- def not_builtin_without_anonymous
-- where.not(type: [SystemUser.name,
-- DeletedUser.name])
-- end
end
end
end
diff --cc app/models/principals/scopes/status.rb
index bcf2545174c,bcf2545174c..f04f9e083d5
--- a/app/models/principals/scopes/status.rb
+++ b/app/models/principals/scopes/status.rb
@@@ -45,10 -45,10 +45,6 @@@ module Principals::Scope
not_builtin.where.not(status: val)
end
end
--
-- def self.not_locked_without_anonymous
-- not_builtin_without_anonymous.where.not(status: :locked)
-- end
end
end
end