Allow status endpoint to be called with contact properties.

This commit is contained in:
akwizgran
2022-05-27 17:26:55 +01:00
parent d43ef463a6
commit 44b0955b9d

View File

@@ -127,7 +127,6 @@ class MailboxApiImpl implements MailboxApi {
@Override
public boolean checkStatus(MailboxProperties properties)
throws IOException, ApiException {
if (!properties.isOwner()) throw new IllegalArgumentException();
Response response = sendGetRequest(properties, "/status");
if (response.code() == 401) throw new ApiException();
return response.isSuccessful();