mirror of https://gitlab.com/bashrc2/epicyon
User access to shared item catalog
parent
8ff707fbd2
commit
347d769b0b
|
@ -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
|
||||
|
|
|
@ -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> ' + \
|
||||
|
|
Loading…
Reference in New Issue