{"record":{"id":"4ac0674319856ca6","repo":"coollabsio/coolify","slug":"not-found-4ac067","errorCode":null,"errorMessage":"Not Found","messagePattern":"Not Found","errorType":"http","errorClass":"HttpException","httpStatus":404,"severity":"error","filePath":"app/Livewire/Admin/Index.php","lineNumber":70,"sourceCode":"        }\n    }\n\n    public function getSubscribers()\n    {\n        if (Auth::id() !== 0 && ! session('impersonating')) {\n            return redirect()->route('dashboard');\n        }\n        $this->inactiveSubscribers = Team::whereRelation('subscription', 'stripe_invoice_paid', false)->count();\n        $this->activeSubscribers = Team::whereRelation('subscription', 'stripe_invoice_paid', true)->count();\n    }\n\n    public function switchUser(int $user_id)\n    {\n        $this->authorizeRootOnly();\n        session(['impersonating' => true]);\n        $user = User::find($user_id);\n        if (! $user) {\n            abort(404);\n        }\n        $team_to_switch_to = $user->teams->first();\n        Auth::login($user);\n        refreshSession($team_to_switch_to);\n\n        return redirect()->route('dashboard');\n    }\n\n    private function authorizeAdminAccess(): void\n    {\n        if (! Auth::check() || (Auth::id() !== 0 && ! session('impersonating'))) {\n            abort(403);\n        }\n    }\n\n    private function authorizeRootOnly(): void\n    {\n        if (! Auth::check() || Auth::id() !== 0) {","sourceCodeStart":52,"sourceCodeEnd":88,"githubUrl":"https://github.com/coollabsio/coolify/blob/70b9acc42467278373e00de77abb40684e25b395/app/Livewire/Admin/Index.php#L52-L88","documentation":"Error \"Not Found\" thrown in coollabsio/coolify.","triggerScenarios":"Thrown at app/Livewire/Admin/Index.php:70 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"70b9acc42467278373e00de77abb40684e25b395","analyzedAt":"2026-08-17T01:41:01.313Z","schemaVersion":2},"datasetVersion":"2026-08-17T04:17:16.089Z"}