Using collection's URL for logging instead of its name
This commit is contained in:
parent
e3bc6afdd3
commit
bc0b74c555
@ -225,12 +225,12 @@ class Application(object):
|
|||||||
if rights.read_authorized(user, item) or \
|
if rights.read_authorized(user, item) or \
|
||||||
rights.write_authorized(user, item):
|
rights.write_authorized(user, item):
|
||||||
log.LOGGER.info("%s has access to collection %s" % (
|
log.LOGGER.info("%s has access to collection %s" % (
|
||||||
user, item.name or "/"))
|
user, item.url or "/"))
|
||||||
last_collection_allowed = True
|
last_collection_allowed = True
|
||||||
allowed_items.append(item)
|
allowed_items.append(item)
|
||||||
else:
|
else:
|
||||||
log.LOGGER.info("%s has NO access to collection %s" % (
|
log.LOGGER.info("%s has NO access to collection %s" % (
|
||||||
user, item.name or "/"))
|
user, item.url or "/"))
|
||||||
last_collection_allowed = False
|
last_collection_allowed = False
|
||||||
else:
|
else:
|
||||||
# item is not a collection, it's the child of the last
|
# item is not a collection, it's the child of the last
|
||||||
|
Loading…
Reference in New Issue
Block a user