diff options
Diffstat (limited to 'apps/user_ldap/lib/GroupPluginManager.php')
-rw-r--r-- | apps/user_ldap/lib/GroupPluginManager.php | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/apps/user_ldap/lib/GroupPluginManager.php b/apps/user_ldap/lib/GroupPluginManager.php index 8403ad4e4be..5999409cdba 100644 --- a/apps/user_ldap/lib/GroupPluginManager.php +++ b/apps/user_ldap/lib/GroupPluginManager.php @@ -88,7 +88,7 @@ class GroupPluginManager { } public function canDeleteGroup(): bool { - return !$this->suppressDeletion && ($this->which[GroupInterface::DELETE_GROUP] !== null); + return !$this->suppressDeletion && $this->implementsActions(GroupInterface::DELETE_GROUP); } /** @@ -102,11 +102,10 @@ class GroupPluginManager { /** * Delete a group - * @param string $gid Group Id of the group to delete - * @return bool + * * @throws \Exception */ - public function deleteGroup($gid) { + public function deleteGroup(string $gid): bool { $plugin = $this->which[GroupInterface::DELETE_GROUP]; if ($plugin) { |