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
|
# 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
|
||||||
|
|
|
@ -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> ' + \
|
||||||
|
|
Loading…
Reference in New Issue