def user_can_delete_review(request, review):
 is_author = review.addon.has_author(request.user)
 return ((review.user_id == request.user.id) or ((not is_author) and (acl.is_editor(request, review.addon) or acl.action_allowed(request, 'Users', 'Edit') or acl.action_allowed(request, 'Addons', 'Edit'))))

def user_can_delete_review ( request , review ) : is_author = review . addon . has_author ( request . user ) return ( ( review . user_id == request . user . id ) or ( ( not is_author ) and ( acl . is_editor ( request , review . addon ) or acl . action_allowed ( request , 'Users' , 'Edit' ) or acl . action_allowed ( request , 'Addons' , 'Edit' ) ) ) )
return whether or not the request .