bugfix
authorgfawcett <gfawcett@6d9bc8c9-1ec2-4278-b937-99fde70a366f>
Thu, 13 Jan 2011 02:36:03 +0000 (02:36 +0000)
committergfawcett <gfawcett@6d9bc8c9-1ec2-4278-b937-99fde70a366f>
Thu, 13 Jan 2011 02:36:03 +0000 (02:36 +0000)
git-svn-id: svn://svn.open-ils.org/ILS-Contrib/servres/trunk@1195 6d9bc8c9-1ec2-4278-b937-99fde70a366f

conifer/templates/components/site.xhtml

index 5c9eda6..8a5e8d7 100644 (file)
@@ -1,6 +1,5 @@
 <?python
 searchtext = _('search this site...')
-downloads_allowed = site.allows_downloads_to(user)
 ?>
 <html xmlns="http://www.w3.org/1999/xhtml"
       xmlns:py="http://genshi.edgewall.org/"
@@ -35,6 +34,7 @@ downloads_allowed = site.allows_downloads_to(user)
        id="item_${item.id}">
       <abbr py:if="not item.item_type=='HEADING'" class="unapi-id" title="${item.id}"/>
       <?python
+       downloads_allowed = site.allows_downloads_to(user)
        stat = callhook('item_status', item) if (item.item_type == 'PHYS') else None
        valid = stat is not None
       ?>