def has_permission(self, resource_name, resource_type, perm):
    if ('acl' not in session):
        abort(405)
    return True
def has_permission(self, resource_name, resource_type, perm):
    if ('acl' not in session):
        abort(405)
    return True