Skip to content

Commit

Permalink
Remove incorrect status from lock logic
Browse files Browse the repository at this point in the history
clientDeleteProhibited should not be conflated with domain locking.
  • Loading branch information
domainregistrar authored Dec 3, 2024
1 parent 60efbab commit 74c6d00
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/Hexonet/Provider.php
Original file line number Diff line number Diff line change
Expand Up @@ -468,7 +468,6 @@ public function _getInfo(string $domain, $msg = 'Domain data obtained'): DomainR
$lockedStatuses = [
'clientTransferProhibited',
'clientUpdateProhibited',
'clientDeleteProhibited',
];
$domainInfo['locked'] = boolval(array_intersect($lockedStatuses, $domainInfo['statuses']));

Expand Down Expand Up @@ -623,7 +622,7 @@ protected function updateCreateContact(UpdateDomainContactParams $params, string
/**
* Unlocks/Locks a domain for update, delete + transfer.
*
* Toggles ClientProhibitedTransfer, clientUpdateProhibited + clientDeleteProhibited statuses of a domain.
* Toggles ClientProhibitedTransfer + clientUpdateProhibited statuses of a domain.
*
* @throws \Exception
* @throws \Metaregistrar\EPP\eppException
Expand All @@ -642,7 +641,6 @@ public function setLock(LockParams $params): DomainResult
$lockedStatuses = [
'clientTransferProhibited',
'clientUpdateProhibited',
'clientDeleteProhibited',
];

$params = [
Expand Down

0 comments on commit 74c6d00

Please sign in to comment.