mirror of
https://github.com/dyzulk/trustlab-api.git
synced 2026-01-26 05:15:35 +07:00
Fix: Bypass auth in debug installer for public access
This commit is contained in:
@@ -151,7 +151,9 @@ class RootCaApiController extends Controller
|
||||
|
||||
public function debugInstaller()
|
||||
{
|
||||
$this->authorizeAdminOrOwner();
|
||||
// Permission check skipped for debugging (Public Route)
|
||||
// $this->authorizeAdminOrOwner();
|
||||
|
||||
try {
|
||||
$cert = \App\Models\CaCertificate::latest()->first();
|
||||
if (!$cert) return response()->json(['message' => 'No certs found']);
|
||||
|
||||
Reference in New Issue
Block a user