ok

Mini Shell

Direktori : /opt/imunify360/venv/lib64/python3.11/site-packages/im360/simple_rpc/
Upload File :
Current File : //opt/imunify360/venv/lib64/python3.11/site-packages/im360/simple_rpc/unavailable_on_freemium.py

from functools import wraps
from defence360agent.contracts.config import (
    is_mi_freemium_license,
)


def unavailable_on_freemium(coro):
    @wraps(coro)
    async def wrapper(*args, **kwargs):
        if is_mi_freemium_license():
            raise ValueError("Forbidden for freemium")
        return await coro(*args, **kwargs)

    return wrapper

Zerion Mini Shell 1.0