<commit_before><?xml version="1.0" encoding="utf-8"?>
<openerp>
    <data noupdate="0">

        <record id="partner_involvement_category_base_cud_rule" model="ir.rule">
            <field name="name">Partner Involvement Category (CUD) for Mozaik Base</field>
            <field name="model_id" ref="mozaik_person.model_partner_involvement_category" />
            <field name="domain_force">[('res_users_ids','in', [user.id])]</field>
            <field name="groups" eval="[(5,0,0)]"/>
            <field name="perm_read" eval="0"/><field name="perm_write" eval="1"/>
            <field name="perm_create" eval="1"/><field name="perm_unlink" eval="1"/>
        </record>

        <record id="partner_involvement_base_cud_rule" model="ir.rule">
            <field name="name">Partner Involvement (CUD) for Mozaik Base</field>
            <field name="model_id" ref="mozaik_person.model_partner_involvement" />
            <field name="domain_force">[('partner_involvement_category_id.res_users_ids','in', [user.id])]</field>
            <field name="groups" eval="[(5,0,0)]"/>
            <field name="perm_read" eval="0"/><field name="perm_write" eval="1"/>
            <field name="perm_create" eval="1"/><field name="perm_unlink" eval="1"/>
        </record>

    </data>
</openerp><commit_msg>[CHG] security rules related to involvements and categories (i.e. grant all rights to configurators) refs #14708<commit_after><?xml version="1.0" encoding="utf-8"?>
<openerp>
    <data noupdate="0">

        <record id="partner_involvement_category_base_c_rule" model="ir.rule">
            <field name="name">Partner Involvement Category (C) for Mozaik Base</field>
            <field name="model_id" ref="mozaik_person.model_partner_involvement_category" />
            <field name="domain_force">[('res_users_ids', 'in', [user.id])]</field>
            <field name="groups" eval="[(5,0,0)]"/>
            <field name="perm_read" eval="0"/><field name="perm_write" eval="0"/>
            <field name="perm_create" eval="1"/><field name="perm_unlink" eval="0"/>
        </record>

        <record id="partner_involvement_category_base_ud_user_rule" model="ir.rule">
            <field name="name">Partner Involvement Category (UD) for Mozaik User</field>
            <field name="model_id" ref="mozaik_person.model_partner_involvement_category" />
            <field name="domain_force">[('res_users_ids', 'in', [user.id])]</field>
            <field name="groups" eval="[(6, 0, [
                ref('mozaik_base.mozaik_res_groups_user'),
            ])]"/>
            <field name="perm_read" eval="0"/><field name="perm_write" eval="1"/>
            <field name="perm_create" eval="0"/><field name="perm_unlink" eval="1"/>
        </record>

        <record id="partner_involvement_category_base_ud_configurator_rule" model="ir.rule">
            <field name="name">Partner Involvement Category (UD) for Mozaik Configurator</field>
            <field name="model_id" ref="mozaik_person.model_partner_involvement_category" />
            <field name="domain_force">[(1, '=', 1)]</field>
            <field name="groups" eval="[(6, 0, [
                ref('mozaik_base.mozaik_res_groups_configurator'),
            ])]"/>
            <field name="perm_read" eval="0"/><field name="perm_write" eval="1"/>
            <field name="perm_create" eval="0"/><field name="perm_unlink" eval="1"/>
        </record>

        <record id="partner_involvement_base_cud_user_rule" model="ir.rule">
            <field name="name">Partner Involvement (CUD) for Mozaik User</field>
            <field name="model_id" ref="mozaik_person.model_partner_involvement" />
            <field name="domain_force">[('partner_involvement_category_id.res_users_ids', 'in', [user.id])]</field>
            <field name="groups" eval="[(6, 0, [
                ref('mozaik_base.mozaik_res_groups_user'),
            ])]"/>
            <field name="perm_read" eval="0"/><field name="perm_write" eval="1"/>
            <field name="perm_create" eval="1"/><field name="perm_unlink" eval="1"/>
        </record>

        <record id="partner_involvement_base_cud_configurator_rule" model="ir.rule">
            <field name="name">Partner Involvement (CUD) for Mozaik Configurator</field>
            <field name="model_id" ref="mozaik_person.model_partner_involvement" />
            <field name="domain_force">[(1, '=', 1)]</field>
            <field name="groups" eval="[(6, 0, [
                ref('mozaik_base.mozaik_res_groups_configurator'),
            ])]"/>
            <field name="perm_read" eval="0"/><field name="perm_write" eval="1"/>
            <field name="perm_create" eval="1"/><field name="perm_unlink" eval="1"/>
        </record>

    </data>
</openerp>
{'fraction_non_alphanumeric': 0.17229017292281737, 'fraction_numerical': 0.013074652045550401, 'mean_word_length': 3.223508459483526, 'pattern_counts': {'":': 0, '<': 97, '<?xml version=': 2, '>': 97, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 2}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2261680', 'n_tokens_mistral': 1572, 'n_tokens_neox': 1548, 'n_words': 255}