Skip to content

Commit c8e01e1

Browse files
committed
no more delete return success
1 parent 507fc9e commit c8e01e1

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

resources/lib/UnityGroup.php

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -218,10 +218,7 @@ public function removeGroup($send_mail = true)
218218
// now we delete the ldap entry
219219
$ldapPiGroupEntry = $this->getLDAPPiGroup();
220220
if ($ldapPiGroupEntry->exists()) {
221-
if (!$ldapPiGroupEntry->delete()) {
222-
throw new Exception("Unable to delete PI ldap group");
223-
}
224-
221+
$ldapPiGroupEntry->delete();
225222
$this->REDIS->removeCacheArray("sorted_groups", "", $this->getPIUID());
226223
foreach ($users as $user) {
227224
$this->REDIS->removeCacheArray($user->getUID(), "groups", $this->getPIUID());

0 commit comments

Comments
 (0)