Fix: Correct role retrieval method call and update project test assertions for accuracy

This commit is contained in:
shimon
2025-11-28 08:57:12 +02:00
parent 67311fe5d6
commit aed0079cad
2 changed files with 5 additions and 5 deletions
@@ -39,7 +39,7 @@ class User extends Document
{
$roles = [];
if (!$this->isPrivileged($authorization->getRoles) && !$this->isApp($authorization->getRoles())) {
if (!$this->isPrivileged($authorization->getRoles()) && !$this->isApp($authorization->getRoles())) {
if ($this->getId()) {
$roles[] = Role::user($this->getId())->toString();
$roles[] = Role::users()->toString();