def METHOD_NAME(request):
    """
    When the status is accepted
    available actions should be:
    recommending the credit transfer for approval
    and rescinding the credit transfer
    (provided the user has the right permissions)
    """
    status_dict = {s.status: s for s in CreditTradeActions.__statuses}
    available_statuses = []
    if request.user.has_perm('RECOMMEND_CREDIT_TRANSFER'):
        available_statuses.append(status_dict["Recommended"])
    if request.user.has_perm('RESCIND_CREDIT_TRANSFER'):
        available_statuses.append(status_dict["Cancelled"])
    serializer = CreditTradeStatusMinSerializer(
        available_statuses, many=True)
    return serializer.data