def check_subscription_limit_reached(self, brl_user, brl_new_user=None):

        contributors, num_private_blocks = self._get_subscription_utilisation_status(brl_user)
        user_subscription = self._store.read_user_subscription(brl_user)
        print user_subscription.max_users
        if brl_new_user:
            contributors.add(brl_new_user)

        # Check contributors
        if len(contributors) > user_subscription.max_users:
            more = " more" if user_subscription.max_users > 0 else ""
            raise PlanUpgradeNeeded("Upgrade plan to get%s users" % more)

        # Check num private blocks
        if user_subscription.max_private_blocks != -1:  # Unlimited
            if num_private_blocks > user_subscription.max_private_blocks:
                self.raise_upgrade_blocks(user_subscription)
dataset/ETHPy150Open biicode/bii-server/authorize.py/Security.check_subscription_limit_reached/original