def METHOD_NAME(user: Optional[User], alert_group: AlertGroup) -> bool:
    if not user:
        return False
    has_permission = user_is_authorized(user, [RBACPermission.Permissions.CHATOPS_WRITE])
    return user.organization == alert_group.channel.organization and has_permission