def _pre_update(self, existing):
        self.code = validate(self.raw)
        self._calc_hash()
        if self.raw['script_hash'] != existing.script_hash:
            self.raw['approved'] = has_perm(self.player, 'admin') and self.raw['approved']
dataset/ETHPy150Open genzgd/Lampost-Mud/lampost/editor/scripts.py/ScriptEditor._pre_update/original