mirror of
https://github.com/9001/copyparty.git
synced 2025-10-06 03:50:30 +02:00
idp: hide login/logout UI + improve html_head
handling
This commit is contained in:
parent
a259704596
commit
dbf1cbc8af
6 changed files with 21 additions and 22 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue