User access to shared item catalog

merge-requests/30/head
Bob Mottram 2021-07-27 22:04:49 +01:00
parent 8ff707fbd2
commit 347d769b0b
2 changed files with 4 additions and 2 deletions

View File

@ -10755,7 +10755,8 @@ class PubServer(BaseHTTPRequestHandler):
# shared items catalog for this instance # shared items catalog for this instance
# this is only accessible to instance members or to # this is only accessible to instance members or to
# other instances which present an authorization token # other instances which present an authorization token
if self.path.startswith('/catalog'): if self.path.startswith('/catalog') or \
(self.path.startswith('/users/') and '/catalog' in self.path):
catalogAuthorized = authorized catalogAuthorized = authorized
if not catalogAuthorized: if not catalogAuthorized:
# basic auth access to shared items catalog # basic auth access to shared items catalog

View File

@ -144,7 +144,8 @@ def _htmlSearchResultShare(sharedItem: {}, translate: {},
sharedItemsForm += \ sharedItemsForm += \
'<b>' + translate['Type'] + ':</b> ' + sharedItem['itemType'] + '<br>' '<b>' + translate['Type'] + ':</b> ' + sharedItem['itemType'] + '<br>'
sharedItemsForm += \ sharedItemsForm += \
'<b>' + translate['Category'] + ':</b> ' + sharedItem['category'] + '<br>' '<b>' + translate['Category'] + ':</b> ' + \
sharedItem['category'] + '<br>'
if sharedItem.get('location'): if sharedItem.get('location'):
sharedItemsForm += \ sharedItemsForm += \
'<b>' + translate['Location'] + ':</b> ' + \ '<b>' + translate['Location'] + ':</b> ' + \