Commit 27181820 authored by Jan Provaznik's avatar Jan Provaznik

Revert has_parent? optimization

This reverts optimization made in
https://gitlab.com/gitlab-org/gitlab/-/merge_requests/17749

The reason is that at the moment parent_id reference integrity is
not assured and a couple of errors were reported when the referenced
parent was actually missing.
parent 5ac9eb84
......@@ -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