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"):
|
||||
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):
|
||||
|
Loading…
Reference in New Issue
Block a user