def METHOD_NAME(user_acl, target):
    if not user_acl["can_follow_users"]:
        raise PermissionDenied(
            pgettext_lazy("users profiles permission", "You can't follow other users.")
        )
    if user_acl["user_id"] == target.id:
        raise PermissionDenied(
            pgettext_lazy(
                "users profiles permission", "You can't add yourself to followed."
            )
        )