add volflag to hide volume from controlpanel listing

This commit is contained in:
ed 2025-07-07 14:15:58 +00:00
parent fad2268566
commit fd7c71d6a3
4 changed files with 13 additions and 0 deletions

View file

@ -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])