summaryrefslogtreecommitdiff
path: root/addons/share/wizard/share_wizard.py
diff options
context:
space:
mode:
authorBhavik Bagdiya <bba@openerp.com>2014-09-10 18:22:04 +0530
committerThibault Delavallée <tde@openerp.com>2014-09-12 16:38:08 +0200
commite924aec93c2585f7bbf5f32c941f78a9d51e0e54 (patch)
tree32dff39cca997583e4331929391c89a9067bf600 /addons/share/wizard/share_wizard.py
parent037019f755de51d6202c9e47703f38ca34168afc (diff)
[IMP] share: better way to restrict the feature to the technical group.
Reverted commit 57a12121057df9fee039a54f5b947c0e8a917fe9 that introduced an unnecessary call to has_group, as it could be done un share_wizard.py once for the session. Removed the group_share_user, not necessary anymore.
Diffstat (limited to 'addons/share/wizard/share_wizard.py')
-rw-r--r--addons/share/wizard/share_wizard.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/addons/share/wizard/share_wizard.py b/addons/share/wizard/share_wizard.py
index 4ce33e2be29..ac8874f6954 100644
--- a/addons/share/wizard/share_wizard.py
+++ b/addons/share/wizard/share_wizard.py
@@ -70,7 +70,7 @@ class share_wizard(osv.TransientModel):
return group_id in self.pool.get('res.users').read(cr, uid, [uid], ['groups_id'], context=context)[0]['groups_id']
def has_share(self, cr, uid, unused_param, context=None):
- return self.has_group(cr, uid, module='share', group_xml_id='group_share_user', context=context)
+ return self.has_group(cr, uid, module='base', group_xml_id='group_no_one', context=context)
def _user_type_selection(self, cr, uid, context=None):
"""Selection values may be easily overridden/extended via inheritance"""
@@ -641,7 +641,7 @@ class share_wizard(osv.TransientModel):
_('Action and Access Mode are required to create a shared access.'),
context=context)
self._assert(self.has_share(cr, uid, wizard_data, context=context),
- _('You must be a member of the Share/User group to use the share wizard.'),
+ _('You must be a member of the Technical group to use the share wizard.'),
context=context)
if wizard_data.user_type == 'emails':
self._assert((wizard_data.new_users or wizard_data.email_1 or wizard_data.email_2 or wizard_data.email_3),