def create_preview_curve(self, side):
        # create two joints
        j1 = pm.createNode('joint')
        j2 = pm.createNode('joint')

        j1.t.set(-0.5, 0, 0)
        j2.t.set(0.5, 0, 0)

        self.joints[side] += [j1, j2]

        # create one nurbs curve
        preview_curve = pm.curve(
            d=1,
            p=[(-0.5, 0, 0),
               (0.5, 0, 0)],
            k=[0, 1]
        )
        self.preview_curves[side].append(preview_curve)

        # bind the joints to the curveShape
        pm.select([preview_curve, j1, j2])
        skin_cluster = pm.skinCluster()

        self.store_nodes([
            j1, j2, preview_curve, skin_cluster
        ])
Override this and return True if the requesting user should be able to
dataset/ETHPy150Open eoyilmaz/anima/anima/env/mayaEnv/auxiliary.py/BarnDoorSimulator.create_preview_curve--crossover with--dataset/ETHPy150Open OpenSlides/OpenSlides/openslides/utils/rest_api.py/PermissionMixin.check_view_permissions