Output raw collection path

The same as everywhere else.
This commit is contained in:
Unrud 2017-06-15 23:40:41 +02:00
parent 04bc6c5996
commit f1f94dffbd

View File

@ -278,21 +278,21 @@ class Application:
if self.authorized(user, path, "r"):
self.logger.debug(
"%s has read access to collection %r",
"%r" % user if user else "anonymous user", path or "/")
"%r" % user if user else "anonymous user", path)
read_allowed_items.append(item)
else:
self.logger.debug(
"%s has NO read access to collection %r",
"%r" % user if user else "anonymous user", path or "/")
"%r" % user if user else "anonymous user", path)
if self.authorized(user, path, "w"):
self.logger.debug(
"%s has write access to collection %s",
"%r" % user if user else "anonymous user", path or "/")
"%r" % user if user else "anonymous user", path)
write_allowed_items.append(item)
else:
self.logger.debug(
"%s has NO write access to collection %s",
"%r" % user if user else "anonymous user", path or "/")
"%r" % user if user else "anonymous user", path)
return read_allowed_items, write_allowed_items
def __call__(self, environ, start_response):