idp: hide login/logout UI + improve html_head handling

This commit is contained in:
ed 2024-03-13 18:22:24 +00:00
parent a259704596
commit dbf1cbc8af
6 changed files with 21 additions and 22 deletions

View file

@ -18,7 +18,6 @@ from .cfg import flagdescs, permdescs, vf_bmap, vf_cmap, vf_vmap
from .pwhash import PWHash
from .util import (
IMPLICATIONS,
META_NOBOTS,
SQLITE_VER,
UNPLICATIONS,
UTC,
@ -1661,13 +1660,6 @@ class AuthSrv(object):
if not vol.flags.get("robots"):
vol.flags["norobots"] = True
for vol in vfs.all_vols.values():
h = [vol.flags.get("html_head", self.args.html_head)]
if vol.flags.get("norobots"):
h.insert(0, META_NOBOTS)
vol.flags["html_head"] = "\n".join([x for x in h if x])
for vol in vfs.all_vols.values():
if self.args.no_vthumb:
vol.flags["dvthumb"] = True