mirror of
https://github.com/9001/copyparty.git
synced 2026-02-21 18:01:40 +10:00
show perms in ?h&ls + fix unlistc*
This commit is contained in:
@@ -6387,10 +6387,10 @@ class HttpCli(object):
|
|||||||
eses = ["", ""]
|
eses = ["", ""]
|
||||||
rvol = self.rvol
|
rvol = self.rvol
|
||||||
wvol = self.wvol
|
wvol = self.wvol
|
||||||
|
allvols = self.asrv.vfs.all_nodes
|
||||||
if self.args.have_unlistc:
|
if self.args.have_unlistc:
|
||||||
allvols = self.asrv.vfs.all_vols
|
rvol = [x for x in rvol if "unlistcr" not in allvols[x].flags]
|
||||||
rvol = [x for x in rvol if "unlistcr" not in allvols[x[1:-1]].flags]
|
wvol = [x for x in wvol if "unlistcw" not in allvols[x].flags]
|
||||||
wvol = [x for x in wvol if "unlistcw" not in allvols[x[1:-1]].flags]
|
|
||||||
vols = list(set(rvol + wvol))
|
vols = list(set(rvol + wvol))
|
||||||
if self.vpath:
|
if self.vpath:
|
||||||
zs = "%s/" % (self.vpath,)
|
zs = "%s/" % (self.vpath,)
|
||||||
@@ -6408,6 +6408,7 @@ class HttpCli(object):
|
|||||||
"tags": e_d,
|
"tags": e_d,
|
||||||
"dt": 0,
|
"dt": 0,
|
||||||
"name": 0,
|
"name": 0,
|
||||||
|
"perms": allvols[x].get_perms("", self.uname),
|
||||||
}
|
}
|
||||||
for x in sorted(vols)
|
for x in sorted(vols)
|
||||||
]
|
]
|
||||||
|
|||||||
Reference in New Issue
Block a user