'Check the user \'uid\' can grant the badge \'badge_id\' and raise the appropriate exception
if not
Do not check for SUPERUSER_ID'

def check_granting(self):

    status_code = self._can_grant_badge()
    if (status_code == self.CAN_GRANT):
        return True
    elif (status_code == self.NOBODY_CAN_GRANT):
        raise exceptions.UserError(_('This    badge    can    not    be    sent    by    users.'))
    elif (status_code == self.USER_NOT_VIP):
        raise exceptions.UserError(_('You    are    not    in    the    user    allowed    list.'))
    elif (status_code == self.BADGE_REQUIRED):
        raise exceptions.UserError(_('You    do    not    have    the    required    badges.'))
    elif (status_code == self.TOO_MANY):
        raise exceptions.UserError(_('You    have    already    sent    this    badge    too    many    time    this    month.'))
    else:
        _logger.error(('Unknown    badge    status    code:    %s' % status_code))
    return False
