fix(cdr): remove redundant Auth method calls in CDR actions
This commit is contained in:
1 parent
21a88440c3
commit
e6cd08ab4e
1 file changed
-3
@@ -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,
|
||||
|
||||
Reference in new issue
Block a user