Re-added is_admin helper
This commit is contained in:
parent
2681360352
commit
829be876c1
|
@ -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 $@;
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user