Add actual state of PermittedCreateCollectionByMap and PermittedCreateCollectionByToken in info response

This commit is contained in:
Max Berger
2026-03-03 22:54:42 +01:00
parent 460b249cdc
commit 08d35d97f2
2 changed files with 25 additions and 7 deletions

View File

@@ -963,10 +963,10 @@ class BaseSharing:
answer['Status'] = "success"
if ShareType in ["all", "map"]:
answer['FeatureEnabledCollectionByMap'] = self.sharing_collection_by_map
answer['PermittedCreateCollectionByMap'] = True # TODO toggle per permission, default?
answer['PermittedCreateCollectionByMap'] = self.permit_create_map
if ShareType in ["all", "token"]:
answer['FeatureEnabledCollectionByToken'] = self.sharing_collection_by_token
answer['PermittedCreateCollectionByToken'] = True # TODO toggle per permission, default?
answer['PermittedCreateCollectionByToken'] = self.permit_create_token
# action: TOGGLE
elif action in API_SHARE_TOGGLES_V1: