mirror of
https://github.com/9001/copyparty.git
synced 2025-10-05 19:42:29 +02:00
option to restrict download-as-zip/tar
new global-option / volflag `zip_who` specifies who gets to use the download-as-zip/tar function; * 0: nobody, same as --no-zip * 1: admins * 2: authorized users with read-access * 3: anyone with read-access
This commit is contained in:
parent
6c202effa4
commit
c87af9e85c
5 changed files with 16 additions and 6 deletions
|
@ -141,7 +141,7 @@ class Cfg(Namespace):
|
|||
ex = "hash_mt hsortn safe_dedup srch_time u2abort u2j u2sz"
|
||||
ka.update(**{k: 1 for k in ex.split()})
|
||||
|
||||
ex = "au_vol dl_list mtab_age reg_cap s_thead s_tbody th_convt ups_who"
|
||||
ex = "au_vol dl_list mtab_age reg_cap s_thead s_tbody th_convt ups_who zip_who"
|
||||
ka.update(**{k: 9 for k in ex.split()})
|
||||
|
||||
ex = "db_act k304 loris no304 re_maxage rproxy rsp_jtr rsp_slp s_wr_slp snap_wri theme themes turbo"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue