Use @check_rights in do_OPTIONS so that evolution works
authorKeith Packard <keithp@keithp.com>
Tue, 31 Jul 2012 08:12:09 +0000 (01:12 -0700)
committerKeith Packard <keithp@keithp.com>
Tue, 31 Jul 2012 08:12:09 +0000 (01:12 -0700)
This is how evolution knows that a password is required; if we don't
check here, it won't ever send one (and it will fail forevermore...)

Signed-off-by: Keith Packard <keithp@keithp.com>
calypso/__init__.py

index 7529c55791e8fe92a3291555591f925aafd8149a..6a68c62da9e29d27e1e5aace0b3eee9dc798a2d0 100644 (file)
@@ -304,7 +304,8 @@ class CollectionHTTPHandler(server.BaseHTTPRequestHandler):
         self.send_response(client.CREATED)
         self.end_headers()
 
-    def do_OPTIONS(self):
+    @check_rights
+    def do_OPTIONS(self, context):
         """Manage OPTIONS request."""
         self.send_response(client.OK)
         self.send_header(