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

        <!-- add visibility field to the event form view -->
        <record id="view_event_form_portal" model="ir.ui.view">
            <field name="name">portal.event.form</field>
            <field name="model">event.event</field>
            <field name="inherit_id" ref="event.view_event_form"/>
            <field name="arch" type="xml">
                <xpath expr="//page[last()]" position="after">
                    <page string="Portal Settings">
                        <group>
                            <field name="visibility"/>
                        </group>
                    </page>
                </xpath>
            </field>
        </record>
    </data>
</openerp>

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

        <!-- add visibility field to the event form view -->
        <record id="view_event_form_portal" model="ir.ui.view">
            <field name="name">portal.event.form</field>
            <field name="model">event.event</field>
            <field name="inherit_id" ref="event.view_event_form"/>
            <field name="arch" type="xml">
                <xpath expr="//page[last()]" position="after">
                    <page string="Portal Settings" groups="base.group_user">
                        <group>
                            <field name="visibility"/>
                        </group>
                    </page>
                </xpath>
            </field>
        </record>
    </data>
</openerp>

Hide 'Portal Settings' tab for non group_user.
[FIX] Hide 'Portal Settings' tab for non group_user.

bzr revid: vta@openerp.com-20121129125418-s9jswrsj1sxxgy09