def METHOD_NAME(user_acl, target):
    if not user_acl["can_see_ban_details"]:
        raise PermissionDenied(
            pgettext_lazy(
                "users profiles permission", "You can't see users bans details."
            )
        )