mirror of
https://github.com/9001/copyparty.git
synced 2025-10-06 03:50:30 +02:00
v1.8.4
This commit is contained in:
parent
491803d8b7
commit
1441ccee4f
4 changed files with 23 additions and 7 deletions
|
@ -3126,7 +3126,7 @@ class HttpCli(object):
|
|||
return "" # unhandled / fallthrough
|
||||
|
||||
def scanvol(self) -> bool:
|
||||
if not self.can_read or not self.can_write:
|
||||
if not self.can_admin:
|
||||
raise Pebkac(403, "not allowed for user " + self.uname)
|
||||
|
||||
if self.args.no_rescan:
|
||||
|
@ -3149,7 +3149,7 @@ class HttpCli(object):
|
|||
if act != "cfg":
|
||||
raise Pebkac(400, "only config files ('cfg') can be reloaded rn")
|
||||
|
||||
if not [x for x in self.wvol if x in self.rvol]:
|
||||
if not self.avol:
|
||||
raise Pebkac(403, "not allowed for user " + self.uname)
|
||||
|
||||
if self.args.no_reload:
|
||||
|
@ -3159,7 +3159,7 @@ class HttpCli(object):
|
|||
return self.redirect("", "?h", x.get(), "return to", False)
|
||||
|
||||
def tx_stack(self) -> bool:
|
||||
if not [x for x in self.wvol if x in self.rvol]:
|
||||
if not self.avol and not [x for x in self.wvol if x in self.rvol]:
|
||||
raise Pebkac(403, "not allowed for user " + self.uname)
|
||||
|
||||
if self.args.no_stack:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue