Mercurial > libervia-web
comparison libervia/pages/forums/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 | 29eb15062416 |
children | b2d067339de3 |
comparison
equal
deleted
inserted
replaced
1172:7b8e123ba043 | 1173:0f37b65fe7c2 |
---|---|
30 | 30 |
31 @defer.inlineCallbacks | 31 @defer.inlineCallbacks |
32 def on_data_post(self, request): | 32 def on_data_post(self, request): |
33 profile = self.getProfile(request) | 33 profile = self.getProfile(request) |
34 if profile is None: | 34 if profile is None: |
35 self.pageError(request, C.HTTP_UNAUTHORIZED) | 35 self.pageError(request, C.HTTP_FORBIDDEN) |
36 type_ = self.getPostedData(request, u"type") | 36 type_ = self.getPostedData(request, u"type") |
37 if type_ == u"comment": | 37 if type_ == u"comment": |
38 service, node, body = self.getPostedData(request, (u"service", u"node", u"body")) | 38 service, node, body = self.getPostedData(request, (u"service", u"node", u"body")) |
39 | 39 |
40 if not body: | 40 if not body: |