Move permission checking right after getting item_location.
Change log.error to log.debug.