sharing: database verification related to Permissions

This commit is contained in:
Peter Bieringer
2026-03-08 12:33:44 +01:00
parent 6699e11bb6
commit b09dcc1ead

View File

@@ -300,6 +300,13 @@ class BaseSharing:
else:
pass
# permissions
try:
permissions = config.rights_permission(entry['Permissions'])
except ValueError as e:
logger.error("Permissions contain invalid entry: %r", entry['Permissions'])
return False
# check PathMapped exists
with self._storage.acquire_lock("r", path=entry['PathMapped']):
item = next(iter(self._storage.discover(entry['PathMapped'])), None)