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

Use unless in favor of if !

Klaus Zandersca42c30f950c
diff --git a/app/contracts/queries/projects/project_queries/base_contract.rb b/app/contracts/queries/projects/project_queries/base_contract.rb
index c3996e6cb03..da00abf3366 100644
--- a/app/contracts/queries/projects/project_queries/base_contract.rb
+++ b/app/contracts/queries/projects/project_queries/base_contract.rb
@@ -50,7 +50,7 @@ module Queries::Projects::ProjectQueries
protected
def user_is_logged_in
- if !user.logged?
+ unless user.logged?
errors.add :base, :error_unauthorized
end
end