Cacti / cacti

Cacti ™
http://www.cacti.net
GNU General Public License v2.0
1.65k stars 406 forks source link

Hide disabled issue in get_allowed_devices #5654

Closed xmacan closed 9 months ago

xmacan commented 9 months ago

function read_user_setting($config_name, $default = false, $force = false, $user = 0) This function contains condition for user_id: if ($user == 0 && isset($_SESSION['sess_user_id'])) {

Current code causes issue in intropage (maybe more). Few things are called from poller without SESSION['sess_user_id'] So get_allowed_issues never returns disabled devices in list.

TheWitness commented 9 months ago

This is actually a Cacti bug, you are seeing it for sure, but it's not the right fix. It's a bit more involved.

xmacan commented 9 months ago

fixed #5655