From 532fadabb45cdf7e70f877eaf2de4d476c7dc1d2 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Tue, 12 Mar 2019 22:09:16 +0100 Subject: [PATCH] fix failraptor.png for guests. derp. --- templates/layouts/default.html.ep | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/templates/layouts/default.html.ep b/templates/layouts/default.html.ep index 028f293..90af0a4 100644 --- a/templates/layouts/default.html.ep +++ b/templates/layouts/default.html.ep @@ -32,9 +32,11 @@
- % my $acc = get_user_data(); - % if ($acc and $acc->{deletion_requested}) { - %= include '_deletion_note', timestamp => $acc->{deletion_requested} + % if (is_user_authenticated()) { + % my $acc = get_user_data(); + % if ($acc and $acc->{deletion_requested}) { + %= include '_deletion_note', timestamp => $acc->{deletion_requested} + % } % } %= content