1
0
Fork 0
mirror of https://github.com/Kozea/Radicale.git synced 2025-08-01 18:18:31 +00:00
Radicale/radicale
Christoph Polcin 90d82d044c Fix access to collections
under certain conditions it was possible to pass the final access control
if-clause. the master branch granted access if:

    if ((read_allowed_items or write_allowed_items)
        and (not user or auth.is_authenticated(user, password))) or
        function == self.options or not items:

the easy-connect branch from pull request #95 adds:
    (is_authenticated and function == self.propfind) or

the last `or not items` condition levers out the previous authentication and
access control. that isn't that big secuity issue because in this case there
are no collection and items at all. but "bad" and anonymous users could gather
data and information which not destined for them.

this commit fixes and simplifies the if-clause.
2014-01-19 20:04:37 +01:00
..
auth Allow attach custom auth handler 2013-12-28 13:31:32 +04:00
rights Allow attach custom rights backend, small fix in default config file 2013-12-29 15:13:35 +04:00
storage Allow attach custom storage backend 2013-12-28 14:15:35 +04:00
__init__.py Fix access to collections 2014-01-19 20:04:37 +01:00
__main__.py Fix config files management 2013-06-04 16:59:21 +02:00
config.py Allow attach custom rights backend, small fix in default config file 2013-12-29 15:13:35 +04:00
ical.py Return an int for __hash__ 2013-10-31 14:05:15 +01:00
log.py Fix stupid bug in logs 2013-08-27 15:19:15 +02:00
xmlutils.py Fix calendar/addressbook-home-set in PROPFIND response 2014-01-19 19:35:53 +01:00