[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:
95a2f8b121

We can see in the original revision that it was
correctly there:
cbb51610ee

This 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:
Mohammed Shekha
2016-08-01 11:23:52 +02:00
committed by Denis Ledoux
parent 4b4bc68815
commit dcd03d778e
+1 -1
View File
@@ -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,