Found a bug

First of all, create software. It was perfect for what we were trying to do, but in doing so, I found a bug. When you associate a user to a specific service instead of all services (by associating it with a host), the first service is dropped off the list. In data/NagiosUser.php in the build_authorized_objects function, services section, there are 2 instances where the object’s authHosts array is checked for existence. In both cases, the existence is checked and if it does not exist, then you allocate the array, but the data that you’ve found is never added to that array. The else case needs to be removed and done every time so that all associated services are added.