Using collection's URL for logging instead of its name

This commit is contained in:
Matthias Jordan 2012-08-11 00:57:15 +02:00
parent e3bc6afdd3
commit bc0b74c555

View File

@ -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