Changeset View
Changeset View
Standalone View
Standalone View
src/app/Domain.php
Show First 20 Lines • Show All 261 Lines • ▼ Show 20 Lines | public function setStatusAttribute($status) | ||||
if ($new_status & self::STATUS_CONFIRMED) { | if ($new_status & self::STATUS_CONFIRMED) { | ||||
// if we have confirmed ownership of or management access to the domain, then we have | // if we have confirmed ownership of or management access to the domain, then we have | ||||
// also confirmed the domain exists in DNS. | // also confirmed the domain exists in DNS. | ||||
$new_status |= self::STATUS_VERIFIED; | $new_status |= self::STATUS_VERIFIED; | ||||
$new_status |= self::STATUS_ACTIVE; | $new_status |= self::STATUS_ACTIVE; | ||||
} | } | ||||
// FIXME: Should we remove STATUS_LDAP_READY when setting STATUS_DELETED? | |||||
vanmeeuwen: Isn't STATUS_LDAP_READY removed when the associated job is done? | |||||
if ($new_status & self::STATUS_DELETED && $new_status & self::STATUS_ACTIVE) { | if ($new_status & self::STATUS_DELETED && $new_status & self::STATUS_ACTIVE) { | ||||
$new_status ^= self::STATUS_ACTIVE; | $new_status ^= self::STATUS_ACTIVE; | ||||
} | } | ||||
if ($new_status & self::STATUS_SUSPENDED && $new_status & self::STATUS_ACTIVE) { | if ($new_status & self::STATUS_SUSPENDED && $new_status & self::STATUS_ACTIVE) { | ||||
$new_status ^= self::STATUS_ACTIVE; | $new_status ^= self::STATUS_ACTIVE; | ||||
} | } | ||||
▲ Show 20 Lines • Show All 173 Lines • Show Last 20 Lines |
Isn't STATUS_LDAP_READY removed when the associated job is done?