FIxed: Move permission checking right after getting item_location.