auth = new Auth(); } public function canManageUsers(): bool { $user = $this->auth->getUserFromSession(); if ($user === null) { return false; } return $user->role === Role::admin()->value; } }