Skip to content

Commit

Permalink
[IMP] github connector: All modules only can be access by github app …
Browse files Browse the repository at this point in the history
…user (OCA#41)
  • Loading branch information
hugho-ad authored and Ernesto Tejeda committed Mar 16, 2020
1 parent 81e3e06 commit 489be3e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
5 changes: 5 additions & 0 deletions github_connector/security/res_groups.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,15 @@ License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
<record id="base.group_no_one" model="res.groups">
<field name="users" eval="[(4, ref('base.user_root'))]"/>
</record>
<record id="group_github_connector_user" model="res.groups">
<field name="name">Connector Github User</field>
<field name="category_id" ref="module_category_github_connector"/>
</record>
<record id="group_github_connector_manager" model="res.groups">
<field name="name">Connector Github Manager</field>
<field name="category_id" ref="module_category_github_connector"/>
<field name="users" eval="[(4, ref('base.user_root'))]"/>
<field name="implied_ids" eval="[(4, ref('github_connector.group_github_connector_user'))]"/>
</record>

</odoo>
2 changes: 2 additions & 0 deletions github_connector/views/menu.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).

<menuitem id="menu_github"
name="Github"
groups="github_connector.group_github_connector_user"
web_icon="github_connector,static/description/icon.png"
/>

Expand All @@ -30,6 +31,7 @@ License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
<menuitem id="menu_res_partner"
parent="menu_github_community"
sequence="3"
groups="github_connector.group_github_connector_user"
action="action_res_partner"/>

<!-- Repository Part -->
Expand Down

0 comments on commit 489be3e

Please sign in to comment.