def check_can_change_current_subscription(self, brl_user, plan_id):
        self.check_act_as_admin_of(brl_user)
        # Look if its a downgrade and we the destination plan
        # fits our current contributors and private blocks

        # Check destination plan is active
        dest_plan = CURRENT_PLANS[plan_id]
        if not dest_plan["active"]:
            raise ForbiddenException("Plan is no longer available")

        users, num_private_blocks = self._get_subscription_utilisation_status(brl_user)
        if dest_plan["num_users"] != -1:  # No unlimited
            if len(users) > dest_plan["num_users"]:
                raise PlanDowngradeNotAllowed("You are currently using %d users, "
                                              "reduce to %d before plan downgrade" %
                                              (len(users), dest_plan["num_users"]))

        if dest_plan["num_private_blocks"] != -1:  # No unlimited
            if dest_plan["num_private_blocks"] > num_private_blocks:
                raise PlanDowngradeNotAllowed("You have %d private blocks, "
                                              "reduce it to %d before plan downgrade" %
                                              (num_private_blocks, dest_plan["num_private_blocks"]))
dataset/ETHPy150Open biicode/bii-server/authorize.py/Security.check_can_change_current_subscription/swapped operands of `>`