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 #5652

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'])) {

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

xmacan commented 9 months ago

damn .... I will prepare new ;-)