def can_be_authorised_by(self, user=None):
        if user is None:
            return True
        if self.primary_user:
            return user == self.primary_user
        secondary_users = self.secondary_users.all()
        if secondary_users.count() > 0:
            return user in secondary_users
        return True
Test whether the passed user can authorise a transfer from this account
dataset/ETHPy150Open django-oscar/django-oscar-accounts/src/oscar_accounts/abstract_models.py/Account.can_be_authorised_by