You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: model-server/src/main/kotlin/org/modelix/model/server/handlers/KeyValueLikeModelServer.kt
+6Lines changed: 6 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -280,6 +280,9 @@ class KeyValueLikeModelServer(
280
280
serverId = {
281
281
throwNoPermissionException("'$key' is read-only.")
282
282
},
283
+
legacyClientId = {
284
+
throwNoPermissionException("Directly writing to 'clientId' is not allowed")
285
+
},
283
286
unknown = {
284
287
userDefinedEntries[key] = value
285
288
},
@@ -335,6 +338,7 @@ class KeyValueLikeModelServer(
335
338
serverId = {
336
339
if (isWrite) throwNoPermissionException("'$key' is read-only.")
337
340
},
341
+
legacyClientId = {},
338
342
unknown = {
339
343
call.checkPermission(ModelServerPermissionSchema.legacyUserDefinedObjects.run { if (isWrite) write else read })
340
344
},
@@ -346,6 +350,7 @@ class KeyValueLikeModelServer(
346
350
immutableObject: () ->R,
347
351
branch: (branch: BranchReference) ->R,
348
352
serverId: () ->R,
353
+
legacyClientId: () ->R,
349
354
unknown: () ->R,
350
355
): R {
351
356
returnwhen {
@@ -354,6 +359,7 @@ class KeyValueLikeModelServer(
354
359
key.startsWith(PROTECTED_PREFIX) ->throwNoPermissionException("Access to keys starting with '$PROTECTED_PREFIX' is only permitted to the model server itself.")
355
360
key.startsWith(RepositoriesManager.KEY_PREFIX) ->throwNoPermissionException("Access to keys starting with '${RepositoriesManager.KEY_PREFIX}' is only permitted to the model server itself.")
0 commit comments