def read_permissions_from_file(perm_path="./permissions.json"):
    """
    Read the permissions from a JSON file.

    Args:
        perm_path (str): The path to the permissions JSON file.

    Returns:
        dict: A dictionary containing the permissions.

    """
    try:
        with open(perm_path) as file:
            return json.load(file)
    except FileNotFoundError:
        return {}

    Read the permissions from a JSON file.

    Args:
        perm_path (str): The path to the permissions JSON file.

    Returns:
        dict: A dictionary containing the permissions.

    
llama-index-packs/llama-index-packs-secgpt/llama_index/packs/secgpt/permission.py