sharing: database verification related to Permissions
This commit is contained in:
@@ -300,6 +300,13 @@ class BaseSharing:
|
|||||||
else:
|
else:
|
||||||
pass
|
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
|
# check PathMapped exists
|
||||||
with self._storage.acquire_lock("r", path=entry['PathMapped']):
|
with self._storage.acquire_lock("r", path=entry['PathMapped']):
|
||||||
item = next(iter(self._storage.discover(entry['PathMapped'])), None)
|
item = next(iter(self._storage.discover(entry['PathMapped'])), None)
|
||||||
|
|||||||
Reference in New Issue
Block a user