mirror of
https://github.com/dyzulk/trustlab-api.git
synced 2026-01-26 13:22:05 +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()
|
public function debugInstaller()
|
||||||
{
|
{
|
||||||
$this->authorizeAdminOrOwner();
|
// Permission check skipped for debugging (Public Route)
|
||||||
|
// $this->authorizeAdminOrOwner();
|
||||||
|
|
||||||
try {
|
try {
|
||||||
$cert = \App\Models\CaCertificate::latest()->first();
|
$cert = \App\Models\CaCertificate::latest()->first();
|
||||||
if (!$cert) return response()->json(['message' => 'No certs found']);
|
if (!$cert) return response()->json(['message' => 'No certs found']);
|
||||||
|
|||||||
Reference in New Issue
Block a user