From 0702e6a2580ae5a82b79d7099c22eca230fe2893 Mon Sep 17 00:00:00 2001 From: Deon George Date: Sun, 2 Feb 2025 11:53:36 +1100 Subject: [PATCH] Fix getMissingAttributes(), wasnt evaluating the different objects correctly --- app/Ldap/Entry.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)))); } /**