[ZBX-4381] Checking permissions in report3 SLA Services Created: 2011 Nov 23  Updated: 2017 May 30  Resolved: 2011 Dec 05

Status: Closed
Project: ZABBIX BUGS AND ISSUES
Component/s: Frontend (F)
Affects Version/s: 1.9.8 (beta)
Fix Version/s: 2.0.0

Type: Incident report Priority: Blocker
Reporter: Alexey Pustovalov Assignee: Unassigned
Resolution: Fixed Votes: 0
Labels: itservices, permissions
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

I'm get error about not permissions, when clicking to field "SLA (Last 7 days)" for service without triggers (general service).

in report3.php:
if (!is_null($service['triggerid'])) {
$options = array(
'triggerids' => $service['triggerid'],
'output' => API_OUTPUT_SHORTEN,
'nodeids' => get_current_nodeid(true)
);

$db_data = API::Trigger()->get($options);
if (empty($db_data))

{ access_deny(); <- this }

}

php check returned information about triggers, but i don't have trigger for some Services SLA



 Comments   
Comment by Igor Danoshaites (Inactive) [ 2011 Nov 24 ]

Alexey,

Can you please provide more details about this case (I mean screen shot of your IT service configuration, screen shot of this error, etc), as I can not reproduce such error when using v1.9.8 (rev #23496) and using Zabbix Admin and Zabbix SuperAdmin users ?

Thank you in advance.

Comment by Igor Danoshaites (Inactive) [ 2011 Nov 24 ]

Update: Just managed to get the following error "ERROR: No permissions to referred object or it does not exist!" in the frontend, when trying to open "IT services availability report".

Do you see the same error ?

Comment by Alexey Pustovalov [ 2011 Nov 24 ]

yes thise error

Comment by Pavels Jelisejevs (Inactive) [ 2011 Dec 05 ]

RESOLVED.

Comment by Pavels Jelisejevs (Inactive) [ 2011 Dec 07 ]

Merged to trunk r23831.

CLOSED.

Generated at Sat Apr 05 03:03:57 EEST 2025 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.