Proposed patch for status.c (3.5.0)
Posted: Wed Jan 08, 2014 11:22 am
It seems that status.c doesn't check for permission to view a host when using "navbarsearch", this proposed patch fixes that problem:
Code: Select all
--- status.c.orig 2013-03-09 16:46:35.000000000 -0500
+++ status.c 2014-01-08 10:27:42.000000000 -0500
@@ -1537,6 +1537,10 @@
/* find the host */
temp_host = find_host(temp_service->host_name);
+ /* make sure user has rights to view this host */
+ if(is_authorized_for_host(temp_host, ¤t_authdata) == FALSE)
+ continue;
+
/* make sure user has rights to see this... */
if(is_authorized_for_service(temp_service, ¤t_authdata) == FALSE)
continue;