mirror of
https://github.com/appwrite/appwrite.git
synced 2026-05-26 13:51:13 +00:00
Fix: Correct role retrieval method call and update project test assertions for accuracy
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user