From 829be876c12cc1542e922c0d16a101fd6da0cd9e Mon Sep 17 00:00:00 2001 From: swag Date: Fri, 14 Apr 2023 22:50:59 -0400 Subject: [PATCH] Re-added is_admin helper --- lib/PostText.pm | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/PostText.pm b/lib/PostText.pm index 767d391..fef8b25 100644 --- a/lib/PostText.pm +++ b/lib/PostText.pm @@ -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 $@;