diff options
author | Arthur Schiwon <blizzz@arthur-schiwon.de> | 2019-05-23 16:58:58 +0200 |
---|---|---|
committer | Arthur Schiwon <blizzz@arthur-schiwon.de> | 2019-05-27 12:03:05 +0200 |
commit | c6c8a41d2f34a05dbb8b24b280c767b022a3c338 (patch) | |
tree | 45852452a236211e8126fce4557baa4aa435f0d2 /apps/user_ldap/lib/Group_Proxy.php | |
parent | 96e892770d0b37fab66f8b92c10866fadccf98c5 (diff) | |
download | nextcloud-server-c6c8a41d2f34a05dbb8b24b280c767b022a3c338.tar.gz nextcloud-server-c6c8a41d2f34a05dbb8b24b280c767b022a3c338.zip |
group display name support (service level + ldap)
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
Diffstat (limited to 'apps/user_ldap/lib/Group_Proxy.php')
-rw-r--r-- | apps/user_ldap/lib/Group_Proxy.php | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/apps/user_ldap/lib/Group_Proxy.php b/apps/user_ldap/lib/Group_Proxy.php index 9fccb64cd46..c0599ad4870 100644 --- a/apps/user_ldap/lib/Group_Proxy.php +++ b/apps/user_ldap/lib/Group_Proxy.php @@ -27,7 +27,9 @@ namespace OCA\User_LDAP; -class Group_Proxy extends Proxy implements \OCP\GroupInterface, IGroupLDAP { +use OCP\Group\Backend\IGetDisplayNameBackend; + +class Group_Proxy extends Proxy implements \OCP\GroupInterface, IGroupLDAP, IGetDisplayNameBackend { private $backends = array(); private $refBackend = null; @@ -272,4 +274,7 @@ class Group_Proxy extends Proxy implements \OCP\GroupInterface, IGroupLDAP { return $this->handleRequest($gid, 'getNewLDAPConnection', array($gid)); } + public function getDisplayName(string $gid): string { + return $this->handleRequest($gid, 'getDisplayName', [$gid]); + } } |