From 00eb9e4abe74174fae9f7481b3f7d7f141d6b40c Mon Sep 17 00:00:00 2001 From: tarteo Date: Mon, 24 Apr 2017 16:00:09 +0200 Subject: [PATCH] [ADD] Group 'Edit Favicon' --- web_favicon/README.rst | 2 ++ web_favicon/__manifest__.py | 3 ++- web_favicon/security/web_favicon_security.xml | 7 +++++++ web_favicon/views/res_company.xml | 2 +- 4 files changed, 12 insertions(+), 2 deletions(-) create mode 100644 web_favicon/security/web_favicon_security.xml diff --git a/web_favicon/README.rst b/web_favicon/README.rst index a95c5d43..79335220 100644 --- a/web_favicon/README.rst +++ b/web_favicon/README.rst @@ -30,6 +30,8 @@ You have a sample SVG that can be used as template for generating your icon in /static/src/img/master_original_favicon.svg. You can also search for some favicon generators across the web. +To allow an user to edit the favicon it has to be member of group "Edit Favicon". + Usage ===== diff --git a/web_favicon/__manifest__.py b/web_favicon/__manifest__.py index 418dc2f5..984c5d2e 100644 --- a/web_favicon/__manifest__.py +++ b/web_favicon/__manifest__.py @@ -16,8 +16,9 @@ 'web', ], "data": [ - "views/res_company.xml", + 'views/res_company.xml', 'views/templates.xml', + 'security/web_favicon_security.xml' ], 'installable': True, } diff --git a/web_favicon/security/web_favicon_security.xml b/web_favicon/security/web_favicon_security.xml new file mode 100644 index 00000000..97a1be58 --- /dev/null +++ b/web_favicon/security/web_favicon_security.xml @@ -0,0 +1,7 @@ + + + + Edit Favicon + + + diff --git a/web_favicon/views/res_company.xml b/web_favicon/views/res_company.xml index b8d138d3..66dc953c 100644 --- a/web_favicon/views/res_company.xml +++ b/web_favicon/views/res_company.xml @@ -5,7 +5,7 @@ - +