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

    <record id="base.group_document_user" model="res.groups">
        <field name="name">Knowledge / User</field>
    </record>

<!--    <record id="group_document_manager" model="res.groups">-->
<!--        <field name="name">Document / Manager</field>-->
<!--    </record>-->

    <record id="knowledge.menu_document_configuration" model="ir.ui.menu">
        <field name="groups_id" eval="[(6,0,[ref('base.group_system')])]"/>
    </record>

    <record id="ir_rule_readpublicdirectories0" model="ir.rule">
        <field name="model_id" ref="document.model_document_directory"/>
        <field name="domain_force">['|','|',('group_ids','in',user.groups_id), ('user_id', '=', user.id), '&amp;', ('user_id', '=', False), ('group_ids','=',False),  '|', ('company_id','=',False), ('company_id','child_of',[user.company_id.id])]</field>
        <field name="name">Read public directories</field>
        <field eval="0" name="global"/>
        <field eval="[(6,0,[ref('base.group_user')])]" name="groups"/>
        <field eval="0" name="perm_unlink"/>
        <field eval="0" name="perm_write"/>
        <field eval="1" name="perm_read"/>
        <field eval="0" name="perm_create"/>
    </record>
    
    <record id="ir_rule_documentmodifyowndirectories0" model="ir.rule">
        <field name="model_id" ref="document.model_document_directory"/>
        <field name="domain_force">[ '|', ('user_id', '=', user.id), '&amp;', ('group_ids','in',user.groups_id), ('user_id','=',False), '|', ('company_id','=',False), ('company_id','child_of',[user.company_id.id]) ]</field>
        <field name="name">Document modify own directories</field><commit_msg>document: fix security rules, for trunk ORM<commit_after><?xml version="1.0" encoding="utf-8"?>
<openerp>
<data noupdate="0">

    <record id="base.group_document_user" model="res.groups">
        <field name="name">Knowledge / User</field>
    </record>

<!--    <record id="group_document_manager" model="res.groups">-->
<!--        <field name="name">Document / Manager</field>-->
<!--    </record>-->

    <record id="knowledge.menu_document_configuration" model="ir.ui.menu">
        <field name="groups_id" eval="[(6,0,[ref('base.group_system')])]"/>
    </record>

    <record id="ir_rule_readpublicdirectories0" model="ir.rule">
        <field name="model_id" ref="document.model_document_directory"/>
        <field name="domain_force">['|','|',('group_ids','in',[g.id for g in user.groups_id]), ('user_id', '=', user.id), '&amp;', ('user_id', '=', False), ('group_ids','=',False),  '|', ('company_id','=',False), ('company_id','child_of',[user.company_id.id])]</field>
        <field name="name">Read public directories</field>
        <field eval="0" name="global"/>
        <field eval="[(6,0,[ref('base.group_user')])]" name="groups"/>
        <field eval="0" name="perm_unlink"/>
        <field eval="0" name="perm_write"/>
        <field eval="1" name="perm_read"/>
        <field eval="0" name="perm_create"/>
    </record>
    
    <record id="ir_rule_documentmodifyowndirectories0" model="ir.rule">
        <field name="model_id" ref="document.model_document_directory"/>
        <field name="domain_force">[ '|', ('user_id', '=', user.id), '&amp;', ('group_ids','in',[g.id for g in user.groups_id]), ('user_id','=',False), '|', ('company_id','=',False), ('company_id','child_of',[user.company_id.id])]</field>
        <field name="name">Document modify own directories</field>
{'fraction_non_alphanumeric': 0.23576083876452253, 'fraction_numerical': 0.00850099178237461, 'mean_word_length': 4.464396284829721, 'pattern_counts': {'":': 0, '<': 75, '<?xml version=': 2, '>': 75, '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': '6336725', 'n_tokens_mistral': 1201, 'n_tokens_neox': 1178, 'n_words': 186}