def can_approve(self, user, **data):
        """
        Only org admins can approve joining an organisation
        :param user: a User
        :param data: data that the user wants to update
        """
        is_org_admin = user.is_org_admin(self.organisation_id)

        is_reseller_preverifying = user.is_reseller() and data.get('pre_verified', False)

        raise Return(is_org_admin or is_reseller_preverifying)
def can_approve ( self , user , ** data ) : is_org_admin = user . is_org_admin ( self . organisation_id ) is_reseller_preverifying = user . is_reseller ( ) and data . get ( 'pre_verified' , False ) raise Return ( is_org_admin or is_reseller_preverifying )
Only org admins can approve joining an organisation
        :param user: a User
        :param data: data that the user wants to update