Mercurial > libervia-web
comparison libervia/pages/forums/topics/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 |
---|---|
44 | 44 |
45 @defer.inlineCallbacks | 45 @defer.inlineCallbacks |
46 def on_data_post(self, request): | 46 def on_data_post(self, request): |
47 profile = self.getProfile(request) | 47 profile = self.getProfile(request) |
48 if profile is None: | 48 if profile is None: |
49 self.pageError(request, C.HTTP_UNAUTHORIZED) | 49 self.pageError(request, C.HTTP_FORBIDDEN) |
50 type_ = self.getPostedData(request, u"type") | 50 type_ = self.getPostedData(request, u"type") |
51 if type_ == u"new_topic": | 51 if type_ == u"new_topic": |
52 service, node, title, body = self.getPostedData( | 52 service, node, title, body = self.getPostedData( |
53 request, (u"service", u"node", u"title", u"body") | 53 request, (u"service", u"node", u"title", u"body") |
54 ) | 54 ) |