Output raw collection path
The same as everywhere else.
This commit is contained in:
parent
04bc6c5996
commit
f1f94dffbd
@ -278,21 +278,21 @@ class Application:
|
|||||||
if self.authorized(user, path, "r"):
|
if self.authorized(user, path, "r"):
|
||||||
self.logger.debug(
|
self.logger.debug(
|
||||||
"%s has read access to collection %r",
|
"%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)
|
read_allowed_items.append(item)
|
||||||
else:
|
else:
|
||||||
self.logger.debug(
|
self.logger.debug(
|
||||||
"%s has NO read access to collection %r",
|
"%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"):
|
if self.authorized(user, path, "w"):
|
||||||
self.logger.debug(
|
self.logger.debug(
|
||||||
"%s has write access to collection %s",
|
"%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)
|
write_allowed_items.append(item)
|
||||||
else:
|
else:
|
||||||
self.logger.debug(
|
self.logger.debug(
|
||||||
"%s has NO write access to collection %s",
|
"%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
|
return read_allowed_items, write_allowed_items
|
||||||
|
|
||||||
def __call__(self, environ, start_response):
|
def __call__(self, environ, start_response):
|
||||||
|
Loading…
Reference in New Issue
Block a user