summaryrefslogtreecommitdiff
path: root/index.pl
diff options
context:
space:
mode:
Diffstat (limited to 'index.pl')
-rwxr-xr-xindex.pl3
1 files changed, 3 insertions, 0 deletions
diff --git a/index.pl b/index.pl
index 95f42c8..1af79a4 100755
--- a/index.pl
+++ b/index.pl
@@ -677,6 +677,9 @@ helper 'get_user_token' => sub {
return;
};
+# This helper should only be called directly when also providing a user ID.
+# If you don't have one, use current_user() instead (get_user_data will
+# delegate to it anyways).
helper 'get_user_data' => sub {
my ( $self, $uid ) = @_;