From dc3657393d2717aa11e6ae93639e137c8205ee14 Mon Sep 17 00:00:00 2001 From: Fabien BOURGEOIS Date: Fri, 11 May 2018 09:34:01 +0200 Subject: [PATCH] [IMP][TMP]Radicale Odoo Right : allow only read, not write ATM (not implemented) --- radicale_odoo_right/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/radicale_odoo_right/__init__.py b/radicale_odoo_right/__init__.py index ece5c20..773a10c 100644 --- a/radicale_odoo_right/__init__.py +++ b/radicale_odoo_right/__init__.py @@ -25,7 +25,7 @@ class Rights(BaseRights): """ BaseRights implementation for Odoo Radicale """ def authorized(self, user, path, permission): - return True + return permission == 'r' def authorized_item(self, user, path, permission): - return True + return permission == 'r'