[bugfix] Fix existing perm adoption (#3651)

* [bugfix] Fix existing perm adoption

* go fmt

* test, small log fix
This commit is contained in:
tobi
2025-01-18 17:55:27 +00:00
committed by GitHub
parent 81b66ad7e3
commit 634d4f408f
7 changed files with 225 additions and 18 deletions

View File

@@ -104,3 +104,7 @@ func (d *DomainPermissionDraft) SetSubscriptionID(i string) {
func (d *DomainPermissionDraft) GetType() DomainPermissionType {
return d.PermissionType
}
func (d *DomainPermissionDraft) IsOrphan() bool {
return d.SubscriptionID == ""
}