def decorator_has_perm(func):

    @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)
    return wrapper_has_perm
def decorator_has_perm(func):

    @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)
    return wrapper_has_perm