We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 086c544 commit 3e33c82Copy full SHA for 3e33c82
mergin/client.py
@@ -346,7 +346,7 @@ def server_type(self):
346
config = json.load(resp)
347
if "user_workspaces_allowed" in config:
348
self._server_type = ServerType.EE
349
- if "global_namespace" in config:
+ if "global_workspace" in config:
350
self._server_type = ServerType.CE
351
except ClientError as e:
352
self._server_type = ServerType.OLD
@@ -619,7 +619,7 @@ def enough_storage_available(self, data):
619
620
def user_info(self):
621
server_type = self.server_type()
622
- if server_type == "old":
+ if server_type == ServerType.OLD:
623
resp = self.get("/v1/user/" + self.username())
624
else:
625
resp = self.get("/v1/user/profile")
0 commit comments