forked from indymedia/epicyon
Outbox post authorization is on particular nicknames
parent
f2c596ee2d
commit
503c423a18
|
@ -226,8 +226,11 @@ class PubServer(BaseHTTPRequestHandler):
|
||||||
self.server.POSTbusy=False
|
self.server.POSTbusy=False
|
||||||
return
|
return
|
||||||
|
|
||||||
if self.path=='/outbox':
|
if self.path.endswith('/outbox'):
|
||||||
|
if '/users/' in self.path:
|
||||||
if self.headers.get('Authorization'):
|
if self.headers.get('Authorization'):
|
||||||
|
nickname=self.path.split('/users/')[1].replace('/inbox','')
|
||||||
|
if nickname==nicknameFromBasicAuth(self.headers['Authorization']):
|
||||||
if authorize(self.server.baseDir,self.headers['Authorization']):
|
if authorize(self.server.baseDir,self.headers['Authorization']):
|
||||||
# TODO
|
# TODO
|
||||||
print('c2s posts not supported yet')
|
print('c2s posts not supported yet')
|
||||||
|
|
Loading…
Reference in New Issue