<?php 
include('session.php');
$complaintRole = $_SESSION['role'] ?? '';
if(in_array($complaintRole, array('ge_admin', 'department_admin', 'je'), true)) {
    http_response_code(403);
    exit('View-only login.');
}
$priority = $_POST['priority'];
$id = $_POST['id'];
$update = $conn->query("UPDATE users_complaint SET priority='".$priority."' WHERE ucid='".$id."'");
?>
