mirror of
https://github.com/9001/copyparty.git
synced 2025-08-17 09:02:15 -06:00
make ?stack work anywhere
This commit is contained in:
parent
03513e0cb1
commit
b32d1f8ad3
|
@ -1474,7 +1474,7 @@ class HttpCli(object):
|
|||
raise Pebkac(500, x)
|
||||
|
||||
def tx_stack(self):
|
||||
if not self.readable or not self.writable:
|
||||
if not self.avol:
|
||||
raise Pebkac(403, "not admin")
|
||||
|
||||
if self.args.no_stack:
|
||||
|
|
|
@ -35,7 +35,7 @@
|
|||
</table>
|
||||
</td></tr></table>
|
||||
<div class="btns">
|
||||
<a href="{{ avol[0] }}?stack">dump stack</a>
|
||||
<a href="/?stack">dump stack</a>
|
||||
</div>
|
||||
{%- endif %}
|
||||
|
||||
|
|
Loading…
Reference in a new issue