Compare commits
No commits in common. "0e2774d1a60267e3572d2beff963b480936c4f0f" and "8b9a617fd5602f0ca6443e3214a3058f3ae2b45f" have entirely different histories.
0e2774d1a6
...
8b9a617fd5
@ -446,7 +446,7 @@ class InviteController extends BaseController
|
||||
|
||||
// ── fallback: JWT super_admin ────────────────────────────────────
|
||||
$this->requireAuth();
|
||||
$this->requireSuperAdmin();
|
||||
$this->requireRole(['super_admin']);
|
||||
}
|
||||
|
||||
// ── helper ───────────────────────────────────────────────────────────
|
||||
|
||||
@ -7,7 +7,6 @@
|
||||
|
||||
require_once __DIR__ . '/BaseController.php';
|
||||
require_once __DIR__ . '/../services/VisuraService.php';
|
||||
require_once APP_PATH . '/services/RateLimitService.php';
|
||||
|
||||
class OnboardingController extends BaseController
|
||||
{
|
||||
|
||||
@ -213,7 +213,7 @@ if (!empty($listRes['data']['invites'])) {
|
||||
}
|
||||
|
||||
info('Creazione invito B2B piano Professional 12 mesi...');
|
||||
$res = api('POST', '/invites/create', [
|
||||
$res = api('POST', '/invites', [
|
||||
'plan' => 'professional', 'duration_months' => 12, 'invite_expires_days' => 30,
|
||||
'max_uses' => 1, 'label' => 'TechStart - Sim B2B', 'channel' => 'sim-b2b',
|
||||
'notes' => 'Invito simulazione B2B — auto-generato',
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user