|
@ -82,7 +82,7 @@ _get_root() { |
|
|
_debug "Failed domain lookup via domains.getList api call. Trying domain lookup via domains.dns.getHosts api." |
|
|
_debug "Failed domain lookup via domains.getList api call. Trying domain lookup via domains.dns.getHosts api." |
|
|
# The above "getList" api will only return hosts *owned* by the calling user. However, if the calling |
|
|
# The above "getList" api will only return hosts *owned* by the calling user. However, if the calling |
|
|
# user is not the owner, but still has administrative rights, we must query the getHosts api directly. |
|
|
# user is not the owner, but still has administrative rights, we must query the getHosts api directly. |
|
|
# See this comment and the official namecheap response: http://disq.us/p/1q6v9x9 |
|
|
|
|
|
|
|
|
# See this comment and the official namecheap response: https://disq.us/p/1q6v9x9 |
|
|
if ! _get_root_by_getHosts "$fulldomain"; then |
|
|
if ! _get_root_by_getHosts "$fulldomain"; then |
|
|
return 1 |
|
|
return 1 |
|
|
fi |
|
|
fi |
|
|