[FIX] website: repair customize menu for groups restricted views
The id of the user to browse has been omitted during the below forward port revision:95a2f8b121We can see in the original revision that it was correctly there:cbb51610eeThis had as wrong side-effect to not display views with a group set in the customize menu, as it checked the groups of a null user browse recordset. opw-684326 Closes #12895
This commit is contained in:
committed by
Denis Ledoux
parent
4b4bc68815
commit
dcd03d778e
@@ -198,7 +198,7 @@ class view(osv.osv):
|
||||
"""
|
||||
imd = self.pool['ir.model.data']
|
||||
theme_view_id = imd.xmlid_to_res_id(cr, uid, 'website.theme')
|
||||
user = self.pool['res.users'].browse(cr, uid, context=context)
|
||||
user = self.pool['res.users'].browse(cr, uid, uid, context=context)
|
||||
user_groups = set(user.groups_id)
|
||||
views = self._views_get(
|
||||
cr, uid, key, bundles=bundles,
|
||||
|
||||
Reference in New Issue
Block a user