From 876d281cd647557b1a3f42267776701b44d1b519 Mon Sep 17 00:00:00 2001 From: Johannes Meyer Date: Tue, 29 Sep 2015 09:45:11 +0200 Subject: [PATCH] Allow to jump to a user when showing a ldap group refs #9772 --- application/views/scripts/group/show.phtml | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/application/views/scripts/group/show.phtml b/application/views/scripts/group/show.phtml index 725f22a27..a7c3abed7 100644 --- a/application/views/scripts/group/show.phtml +++ b/application/views/scripts/group/show.phtml @@ -2,6 +2,7 @@ use Icinga\Data\Extensible; use Icinga\Data\Updatable; +use Icinga\Data\Selectable; $extensible = $this->hasPermission('config/authentication/groups/add') && $backend instanceof Extensible; @@ -67,7 +68,22 @@ foreach ($members as $member): ?> - escape($member->user_name); ?> + + hasPermission('config/authentication/users/show') + && ($userBackend = $backend->getUserBackend()) !== null + && $userBackend instanceof Selectable + ): ?> + qlink($member->user_name, 'user/show', array( + 'backend' => $userBackend->getName(), + 'user' => $member->user_name + ), array( + 'title' => sprintf($this->translate('Show detailed information about %s'), $member->user_name) + )); ?> + + escape($member->user_name); ?> + + getElement('user_name')->setValue($member->user_name); echo $removeForm; ?>