<?php
// modules/auxiliar/marcar_todas_leidas.php
require_once '../../includes/auth.php';
require_once '../../includes/database.php';
requireRole('auxiliar');

global $db;
$db->update('notificaciones', ['leida' => 1], "usuario_id = ?", [$_SESSION['user_id']]);

echo json_encode(['success' => true]);