@functools.wraps(func)
def wrapper_has_perm(*args, **kwargs):
    if (not resources):
        return
    if current_app.config.get('USE_ACL'):
        validate_permission(resources, resource_type, perm)
    return func(*args, **kwargs)
@functools.wraps(func)
def wrapper_has_perm(*args, **kwargs):
    if (not resources):
        return
    if current_app.config.get('USE_ACL'):
        validate_permission(resources, resource_type, perm)
    return func(*args, **kwargs)