@ -1496,7 +1496,7 @@ class SessionManager
$res = $qb->getSingleScalarResult();
if ($res != $userId) {
if ($res != $userId && !api_is_platform_admin()) {
api_not_allowed(true);
}