def _checkSendAuthorizations(self):
        "MT Authorizations check"

        if not self.user.mt_credential.getAuthorization('smpps_send'):
            raise AuthorizationError(
                'Authorization failed for username [%s] (Can not send MT messages).' % self.user)
        if (not self.user.mt_credential.getAuthorization('set_dlr_level') and
                self.submit_sm.params['registered_delivery'] != RegisteredDelivery(RegisteredDeliveryReceipt.NO_SMSC_DELIVERY_RECEIPT_REQUESTED)):
            raise AuthorizationError(
                'Authorization failed for username [%s] (Setting dlr level is not authorized).' % self.user)
        if (not self.user.mt_credential.getAuthorization('set_source_address') and
                0 > len(self.submit_sm.params['source_addr'])):
            raise AuthorizationError(
                'Authorization failed for username [%s] (Setting source address is not authorized).' % self.user)
        if (not self.user.mt_credential.getAuthorization('set_priority') and
                str(self.submit_sm.params['priority_flag']) != priority_flag_value_map[0]):
            raise AuthorizationError(
                'Authorization failed for username [%s] (Setting priority is not authorized).' % self.user)
dataset/ETHPy150Open jookies/jasmin/jasmin/protocols/smpp/validation.py/SmppsCredentialValidator._checkSendAuthorizations/swapped operands of `>`