def check_publish_block(self, brl_block, publish_request):
        self.check_write_block(brl_block)
        user = self._store.read_user(publish_request.parent.block.owner)
        if user.blocks_bytes + publish_request.bytes > user.max_workspace_size:
            raise ForbiddenException("Workspace max size reached please contact us")

    # Delete if auth_user is an admin
dataset/ETHPy150Open biicode/bii-server/authorize.py/Security.check_publish_block/original