Commit 0ff9e429 authored by Sean McGivern's avatar Sean McGivern

Merge branch 'has-parent-fix' into 'master'

Revert has_parent? optimization

Closes #36938

See merge request gitlab-org/gitlab!27668
parents eb3f26fa 27181820
......@@ -274,7 +274,7 @@ class Namespace < ApplicationRecord
end
def has_parent?
parent_id.present? || parent.present?
parent.present?
end
def root_ancestor
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment