diff libervia/pages/events/admin/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
line wrap: on
line diff
--- a/libervia/pages/events/admin/page_meta.py	Fri May 03 13:08:41 2019 +0200
+++ b/libervia/pages/events/admin/page_meta.py	Fri May 03 20:51:22 2019 +0200
@@ -127,7 +127,7 @@
             yield self.host.bridgeCall(u"mbSend", service, node, data, profile)
         except Exception as e:
             if u"forbidden" in unicode(e):
-                self.pageError(request, C.HTTP_UNAUTHORIZED)
+                self.pageError(request, C.HTTP_FORBIDDEN)
             else:
                 raise e
     elif type_ == "event":