Extend acceptedRoles array in AC controllers.

This commit is contained in:
James Cole
2025-08-15 19:50:12 +02:00
parent 87d292ca27
commit ab773c9052
16 changed files with 92 additions and 58 deletions

View File

@@ -72,8 +72,8 @@ trait UserGroupTrait
return;
}
throw new FireflyException(sprintf('Object is of class %s, not User.', $user::class));
$class = null === $user ? 'NULL' : $user::class;
throw new FireflyException(sprintf('Object is %s, not User.', $class));
}
public function getUserGroup(): ?UserGroup