mirror of https://gitlab.com/bashrc2/epicyon
Check authorization
parent
373c107d89
commit
87c274dd30
|
@ -9434,8 +9434,9 @@ class PubServer(BaseHTTPRequestHandler):
|
||||||
'permitted directory',
|
'permitted directory',
|
||||||
'login shown done')
|
'login shown done')
|
||||||
|
|
||||||
if authorized and htmlGET and '/users/' in self.path and \
|
if htmlGET and '/users/' in self.path and \
|
||||||
self.path.endswith('/newswiremobile'):
|
self.path.endswith('/newswiremobile'):
|
||||||
|
if (authorized or (not authorized and '/users/news/' in self.path)):
|
||||||
nickname = getNicknameFromActor(self.path)
|
nickname = getNicknameFromActor(self.path)
|
||||||
if not nickname:
|
if not nickname:
|
||||||
self._404()
|
self._404()
|
||||||
|
@ -9454,7 +9455,8 @@ class PubServer(BaseHTTPRequestHandler):
|
||||||
self.server.positiveVoting,
|
self.server.positiveVoting,
|
||||||
timelinePath,
|
timelinePath,
|
||||||
showPublishAsIcon).encode('utf-8')
|
showPublishAsIcon).encode('utf-8')
|
||||||
self._set_headers('text/html', len(msg), cookie, callingDomain)
|
self._set_headers('text/html', len(msg),
|
||||||
|
cookie, callingDomain)
|
||||||
self._write(msg)
|
self._write(msg)
|
||||||
self.server.GETbusy = False
|
self.server.GETbusy = False
|
||||||
return
|
return
|
||||||
|
|
Loading…
Reference in New Issue