Skip to content

Commit

Permalink
Ensure a deleting domain status is not changed on request
Browse files Browse the repository at this point in the history
  • Loading branch information
NelsonVides committed Oct 18, 2022
1 parent 31a37f9 commit aa6e24d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/domain/mongoose_domain_sql.erl
Original file line number Diff line number Diff line change
Expand Up @@ -340,6 +340,8 @@ set_status(Domain, Status) ->
case mongoose_domain_core:is_host_type_allowed(HostType) of
false ->
{error, unknown_host_type};
true when deleting =:= CurrentStatus ->
{error, domain_deleted};
true when Status =:= CurrentStatus ->
ok;
true ->
Expand Down

0 comments on commit aa6e24d

Please sign in to comment.