Re-added is_admin helper

This commit is contained in:
swagg boi 2023-04-14 22:50:59 -04:00
parent 2681360352
commit 829be876c1

View file

@ -58,6 +58,10 @@ sub startup($self) {
return undef;
});
$self->helper(is_admin => sub ($c) {
$self->session->{'is_admin'} || undef
});
# Finish configuring some things
$self->secrets($self->config->{'secrets'}) || die $@;