Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hide disabled issue in get_allowed_devices #5654

Closed
wants to merge 1 commit into from
Closed

Hide disabled issue in get_allowed_devices #5654

wants to merge 1 commit into from

Conversation

xmacan
Copy link
Member

@xmacan xmacan commented Jan 28, 2024

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
Copy link
Member

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.

@TheWitness TheWitness closed this Jan 28, 2024
@xmacan
Copy link
Member Author

xmacan commented Jan 28, 2024

fixed #5655

@github-actions github-actions bot locked and limited conversation to collaborators Apr 28, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants