mirror of
https://github.com/9001/copyparty.git
synced 2025-08-18 01:22:13 -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)
|
raise Pebkac(500, x)
|
||||||
|
|
||||||
def tx_stack(self):
|
def tx_stack(self):
|
||||||
if not self.readable or not self.writable:
|
if not self.avol:
|
||||||
raise Pebkac(403, "not admin")
|
raise Pebkac(403, "not admin")
|
||||||
|
|
||||||
if self.args.no_stack:
|
if self.args.no_stack:
|
||||||
|
|
|
@ -35,7 +35,7 @@
|
||||||
</table>
|
</table>
|
||||||
</td></tr></table>
|
</td></tr></table>
|
||||||
<div class="btns">
|
<div class="btns">
|
||||||
<a href="{{ avol[0] }}?stack">dump stack</a>
|
<a href="/?stack">dump stack</a>
|
||||||
</div>
|
</div>
|
||||||
{%- endif %}
|
{%- endif %}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue