From 07b3ea19a6ee820da9bf3b9ee5f9504e05f54356 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Mon, 18 Mar 2019 18:47:52 +0100 Subject: never call get_user_data directly --- templates/account.html.ep | 2 +- templates/layouts/default.html.ep | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'templates') diff --git a/templates/account.html.ep b/templates/account.html.ep index bbd6850..4917961 100644 --- a/templates/account.html.ep +++ b/templates/account.html.ep @@ -1,5 +1,5 @@

Account

-% my $acc = get_user_data(); +% my $acc = current_user();
diff --git a/templates/layouts/default.html.ep b/templates/layouts/default.html.ep index 588a83c..8f5bdc2 100644 --- a/templates/layouts/default.html.ep +++ b/templates/layouts/default.html.ep @@ -34,7 +34,7 @@
% if (is_user_authenticated()) { - % my $acc = get_user_data(); + % my $acc = current_user(); % if ($acc and $acc->{deletion_requested}) { %= include '_deletion_note', timestamp => $acc->{deletion_requested} % } -- cgit v1.2.3