mirror of
https://github.com/9001/copyparty.git
synced 2025-11-24 07:23:22 -07:00
fix og-specific issue with single-file volumes;
if a textfile was shared with permission r below/inside a more restrictive volume, then: * if the parent volume had either permission g or h, then the files in the parent folder could be accessed * if the parent volume had anything stricter than g or h, then filenames in the parent volume could be seen, but not accessed
This commit is contained in:
parent
db87ea5ce1
commit
36ab77e0bf
|
|
@ -2652,6 +2652,13 @@ class AuthSrv(object):
|
|||
self.log(t.format(vol.vpath, mtp), 1)
|
||||
errors = True
|
||||
|
||||
for vol in vfs.all_nodes.values():
|
||||
if not vol.flags.get("is_file"):
|
||||
continue
|
||||
zs = "og opds xlink"
|
||||
for zs in zs.split():
|
||||
vol.flags.pop(zs, None)
|
||||
|
||||
for vol in vfs.all_nodes.values():
|
||||
if not vol.realpath or vol.flags.get("is_file"):
|
||||
continue
|
||||
|
|
|
|||
Loading…
Reference in a new issue