comparison libervia/pages/blog/view/page_meta.py @ 1173:0f37b65fe7c2

server: replaced wrong usage of C.HTTP_UNAUTHORIZED by C.HTTP_FORBIDDEN
author Goffi <goffi@goffi.org>
date Fri, 03 May 2019 20:51:22 +0200
parents 469d0de8da0e
children 67ec22356457
comparison
equal deleted inserted replaced
1172:7b8e123ba043 1173:0f37b65fe7c2
285 285
286 @defer.inlineCallbacks 286 @defer.inlineCallbacks
287 def on_data_post(self, request): 287 def on_data_post(self, request):
288 profile = self.getProfile(request) 288 profile = self.getProfile(request)
289 if profile is None: 289 if profile is None:
290 self.pageError(request, C.HTTP_UNAUTHORIZED) 290 self.pageError(request, C.HTTP_FORBIDDEN)
291 type_ = self.getPostedData(request, u'type') 291 type_ = self.getPostedData(request, u'type')
292 if type_ == u'comment': 292 if type_ == u'comment':
293 service, node, body = self.getPostedData(request, (u'service', u'node', u'body')) 293 service, node, body = self.getPostedData(request, (u'service', u'node', u'body'))
294 294
295 if not body: 295 if not body: