Pass an auth token (if available) to the container() search when
searching for bookbags -- this allows us to HTML view our own lists.
Signed-off-by: Jeff Godin <jgodin@tadl.org>
}
if ($cgi->param("bookbag")) {
- $query = "container(bre,bookbag," . int($cgi->param("bookbag")) . ") $query";
+ # Pass an auth token if we have one, so that we can search for our own bookbags
+
+ my $container_token = $ctx->{authtoken} || '';
+ $query = "container(bre,bookbag," . int($cgi->param("bookbag")) . "," . $container_token . ") $query";
}
# Journal title hackery complete