Allow requests with no maching items (ie. requests at "/")
This commit is contained in:
parent
45c1647a92
commit
e9e811d375
@ -293,8 +293,8 @@ class Application(object):
|
|||||||
self.collect_allowed_items(items, user)
|
self.collect_allowed_items(items, user)
|
||||||
|
|
||||||
if read_allowed_items or write_allowed_items or \
|
if read_allowed_items or write_allowed_items or \
|
||||||
function == self.options:
|
function == self.options or not items:
|
||||||
# Collections found, or OPTIONS request (always allowed)
|
# Collections found, or OPTIONS request, or no items at all
|
||||||
status, headers, answer = function(
|
status, headers, answer = function(
|
||||||
environ, read_allowed_items, write_allowed_items, content,
|
environ, read_allowed_items, write_allowed_items, content,
|
||||||
user)
|
user)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user