diff --git a/app/Ldap/Entry.php b/app/Ldap/Entry.php index d2a507c..abda927 100644 --- a/app/Ldap/Entry.php +++ b/app/Ldap/Entry.php @@ -290,7 +290,7 @@ class Entry extends Model public function getMissingAttributes(): Collection { return $this->getAvailableAttributes() - ->diff($this->getVisibleAttributes()); + ->filter(fn($a)=>(! $this->getVisibleAttributes()->contains(fn($b)=>($a->name === $b->name)))); } /**