fix(cdr): remove redundant Auth method calls in CDR actions

This commit is contained in:
sorcier committed 2026-11-04 14:57:03 +01:00
1 parent 21a88440c3
commit e6cd08ab4e
1 file changed
-3
-3
View File
@@ -2279,7 +2279,6 @@ try {
break;
case 'get_cdr':
Auth::requireAuth();
$filters = [
'limit' => (int)($payload['limit'] ?? $_GET['limit'] ?? 100),
'direction' => (string)($payload['direction'] ?? $_GET['direction'] ?? 'all'),
@@ -2297,7 +2296,6 @@ try {
break;
case 'export_cdr_csv':
Auth::requireAuth();
$filters = [
'direction' => (string)($_GET['direction'] ?? 'all'),
'disposition' => (string)($_GET['disposition'] ?? 'all'),
@@ -2313,7 +2311,6 @@ try {
exit;
case 'clear_cdr':
Auth::requireAuth();
$cleared = CdrManager::clearCdr();
echo json_encode([
'success' => $cleared,