Files
librenms-librenms/includes/html/graphs/bill/auth.inc.php
Tony Murray aefd14d3aa Graph API use new code path (#14493)
* Graph API use new code path
Improves error handling significantly

* Actually base64 encode it
2022-10-22 14:58:51 -05:00

11 lines
248 B
PHP

<?php
// Authorises bill viewing
if (is_numeric($vars['id']) && ($auth || bill_permitted($vars['id']))) {
$bill_id = $vars['id'];
$bill = dbFetchRow('SELECT * FROM `bills` WHERE bill_id = ?', [$bill_id]);
$auth = true;
}
global $dur;