We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 67131fe commit d2d8eb9Copy full SHA for d2d8eb9
mergin/client_push.py
@@ -88,6 +88,11 @@ def push_project_async(mc, directory):
88
89
mp.log.info(f"got project info. version {server_version}")
90
91
+ username = mc.username()
92
+ if username not in server_info["access"]["writersnames"]:
93
+ mp.log.error(f"--- push {project_path} - username {username} does not have write access")
94
+ raise ClientError(f"You do not seem to have write access to the project (username '{username}')")
95
+
96
if local_version != server_version:
97
mp.log.error(f"--- push {project_path} - not up to date (local {local_version} vs server {server_version})")
98
raise ClientError("There is a new version of the project on the server. Please update your local copy." +
0 commit comments