[IMP]resolve security restriction for user

bzr revid: sgo@tinyerp.com-20121010092410-3be51cvvv3jcap2g
This commit is contained in:
Sanjay Gohel (Open ERP)
2012-10-10 14:54:10 +05:30
parent e32a71373a
commit 362b1ef843
+1 -3
View File
@@ -496,9 +496,7 @@ class mail_message(osv.Model):
other_ids = set(ids).difference(set(notified_ids), set(author_ids), set(doc_follower_ids), set(document_related_ids))
if not other_ids:
return
raise orm.except_orm(_('Access Denied'),
_('The requested operation cannot be completed due to security restrictions. Please contact your system administrator.\n\n(Document type: %s, Operation: %s)') % \
(self._description, operation))
return False
def create(self, cr, uid, values, context=None):
if not values.get('message_id') and values.get('res_id') and values.get('model'):