make ?stack work anywhere

This commit is contained in:
ed 2021-07-09 13:46:42 +02:00
parent 03513e0cb1
commit b32d1f8ad3
2 changed files with 2 additions and 2 deletions

View file

@ -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:

View file

@ -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 %}