Changeset View
Changeset View
Standalone View
Standalone View
src/app/Jobs/Group/UpdateJob.php
Show All 15 Lines | class UpdateJob extends GroupJob | ||||
{ | { | ||||
$group = $this->getGroup(); | $group = $this->getGroup(); | ||||
if (!$group) { | if (!$group) { | ||||
return; | return; | ||||
} | } | ||||
// Cancel the update if the group is deleted or not yet in LDAP | // Cancel the update if the group is deleted or not yet in LDAP | ||||
if (!$group->isLdapReady() || $group->isDeleted()) { | if (!\config('app.with_ldap') || !$group->isLdapReady() || $group->isDeleted()) { | ||||
$this->delete(); | $this->delete(); | ||||
return; | return; | ||||
} | } | ||||
LDAP::connect(); | LDAP::connect(); | ||||
// Groups does not have an attribute for the status, therefore | // Groups does not have an attribute for the status, therefore | ||||
// we remove suspended groups from LDAP. | // we remove suspended groups from LDAP. | ||||
Show All 16 Lines |