def permitted(self):

        # User must be permitted to create case events
        return self._permitted("create")

    # -------------------------------------------------------------------------
Helper function to check permissions
dataset/ETHPy150Open sahana/eden/modules/s3db/dvr.py/DVRRegisterCaseEvent.permitted