def METHOD_NAME(user: User, action_type: str, model: str, obj: ADCMEntity) -> None:
    if user.has_perm(f"cm.{action_type}_config_of_{model}", obj):
        return
    if model == "adcm" and user.has_perm(f"cm.{action_type}_settings_of_{model}"):
        return
    raise PermissionDenied()