[IMP] ir_qweb: add groups evaluation when a qweb view is rendered
bzr revid: chm@openerp.com-20140107151227-837ecc075be2prp8
This commit is contained in:
@@ -289,6 +289,11 @@ class QWeb(orm.AbstractModel):
|
||||
t_att = {}
|
||||
for (an, av) in e.attributes.items():
|
||||
an = str(an)
|
||||
if an == "groups":
|
||||
can_see = self.user_has_groups(v['request'].cr, v['uid'], groups=av)
|
||||
if not can_see:
|
||||
return ''
|
||||
continue
|
||||
if isinstance(av, unicode):
|
||||
av = av.encode("utf8")
|
||||
else:
|
||||
|
||||
Reference in New Issue
Block a user