diff options
Diffstat (limited to 'templates')
-rw-r--r-- | templates/layouts/default.html.ep | 8 |
1 files 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 @@ </nav> <div class="container"> - % 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 </div> |