mirror of
https://github.com/9001/copyparty.git
synced 2025-10-05 19:42:29 +02:00
add volflag to hide volume from controlpanel listing
This commit is contained in:
parent
fad2268566
commit
fd7c71d6a3
4 changed files with 13 additions and 0 deletions
|
@ -2062,6 +2062,8 @@ class AuthSrv(object):
|
|||
elif self.args.re_maxage:
|
||||
vol.flags["scan"] = self.args.re_maxage
|
||||
|
||||
self.args.have_unlistc = False
|
||||
|
||||
all_mte = {}
|
||||
errors = False
|
||||
for vol in vfs.all_nodes.values():
|
||||
|
@ -2123,6 +2125,9 @@ class AuthSrv(object):
|
|||
if vol.flags.get("og"):
|
||||
self.args.uqe = True
|
||||
|
||||
if "unlistcr" in vol.flags or "unlistcw" in vol.flags:
|
||||
self.args.have_unlistc = True
|
||||
|
||||
zs = str(vol.flags.get("tcolor", "")).lstrip("#")
|
||||
if len(zs) == 3: # fc5 => ffcc55
|
||||
vol.flags["tcolor"] = "".join([x * 2 for x in zs])
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue