User access to shared item catalog

main
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
# this is only accessible to instance members or to
# 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
if not catalogAuthorized:
# basic auth access to shared items catalog

View File

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