From b47505d5bd2acc07da5f6d447b042f5d8948891e Mon Sep 17 00:00:00 2001 From: Guillaume Ayoub Date: Sat, 4 Mar 2017 14:15:46 +0100 Subject: [PATCH] Don't set rights management when no authentication is set --- radicale/rights.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/radicale/rights.py b/radicale/rights.py index 0092843..6c0e263 100644 --- a/radicale/rights.py +++ b/radicale/rights.py @@ -48,8 +48,9 @@ from . import storage def load(configuration, logger): """Load the rights manager chosen in configuration.""" + auth_type = configuration.get("auth", "type") rights_type = configuration.get("rights", "type") - if rights_type == "None": + if auth_type == "None" or rights_type == "None": return lambda user, collection, permission: True elif rights_type in DEFINED_RIGHTS or rights_type == "from_file": return Rights(configuration, logger).authorized