SelfServiceController: ship optional Service User

fixes #1297
This commit is contained in:
Thomas Gelf 2019-02-14 15:34:22 +01:00
parent f06b5df3ae
commit 56293f167f
2 changed files with 7 additions and 0 deletions

View File

@ -265,6 +265,10 @@ class SelfServiceController extends ActionController
'transform_hostname' => $transform,
'flush_api_directory' => $settings->get('self-service/flush_api_dir') === 'y'
];
$username = $settings->get('self-service/icinga_service_user');
if (strlen($username)) {
$params['icinga_service_user'] = $username;
}
if ($transform === '2') {
$transformMethod = '.upperCase';

View File

@ -20,6 +20,9 @@ before switching to a new version.
* FIX: Loop detection works again (#1631)
* FEATURE: RO users could want to see where a configured service originated (#1785)
### REST API
* FIX: Self Service API now ships optional Service User parameter (#1297)
### DB Schema
* FIX: it wasn't possible to use the same custom var in multiple notification
definitions on PostgreSQL (#1762)