mirror of
https://github.com/Kozea/Radicale.git
synced 2025-06-26 16:45:52 +00:00
Use the same import mechanisms for auth, storage, rights
This commit is contained in:
parent
3ddbb80674
commit
17857654b0
7 changed files with 113 additions and 134 deletions
|
@ -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)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue