Use the same import mechanisms for auth, storage, rights
This commit is contained in:
@@ -35,7 +35,7 @@ except ImportError:
|
||||
import re
|
||||
import xml.etree.ElementTree as ET
|
||||
|
||||
from radicale import client, config, ical, access
|
||||
from radicale import client, config, ical, rights
|
||||
|
||||
|
||||
NAMESPACES = {
|
||||
@@ -200,7 +200,7 @@ def propfind(path, xml_request, collections, user=None):
|
||||
multistatus = ET.Element(_tag("D", "multistatus"))
|
||||
|
||||
for collection in collections:
|
||||
if access.read_authorized(user, collection):
|
||||
if rights.read_authorized(user, collection):
|
||||
response = _propfind_response(path, collection, props, user)
|
||||
multistatus.append(response)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user