Update: 2026-05-05 00:01:17
This commit is contained in:
@@ -57,6 +57,10 @@ if ($decoded['role'] === 'super_admin') {
|
||||
$tenantId = $decoded['tenant_id'];
|
||||
}
|
||||
|
||||
// --- QUOTA CHECK ---
|
||||
\App\Middleware\QuotaMiddleware::checkUserQuota($tenantId);
|
||||
// -------------------
|
||||
|
||||
// 4. Save to Database
|
||||
try {
|
||||
$stmt = $db->prepare("INSERT INTO users (id, tenant_id, name, email, email_hash, password_hash, role, created_at) VALUES (?, ?, ?, ?, ?, ?, ?, ?)");
|
||||
|
||||
Reference in New Issue
Block a user