summaryrefslogtreecommitdiff
path: root/addons/website_profile/controllers/main.py
diff options
context:
space:
mode:
authorQuentin Mourier <qmo@odoo.com>2019-05-22 09:09:23 +0000
committerThibault Delavallée <tde@odoo.com>2019-05-22 09:16:30 +0000
commit369143c986e45c51bca000c2cef77f73f98f2389 (patch)
treeac29dd15ca900088a242f412cf5522346f8e0481 /addons/website_profile/controllers/main.py
parente87a74e3ca7b6963a41bca007a5be4011b3debc3 (diff)
[FIX] website_profile: allow to edit its profile
Move code from website_forum allowing to edit its own profile. Otherwise fields to update are not white listed. Also add an unpublished flag when seeing unpublished users in order to know it if you have access to depending on ACLs. Linked to task 1978530 Related to PR #33559
Diffstat (limited to 'addons/website_profile/controllers/main.py')
-rw-r--r--addons/website_profile/controllers/main.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/addons/website_profile/controllers/main.py b/addons/website_profile/controllers/main.py
index 19f9e117ded..2fca601fcb7 100644
--- a/addons/website_profile/controllers/main.py
+++ b/addons/website_profile/controllers/main.py
@@ -204,6 +204,7 @@ class WebsiteProfile(http.Controller):
'rank': user.rank_id.name,
'karma': user.karma,
'badge_count': len(user.badge_ids),
+ 'website_published': user.website_published
}
@http.route(['/profile/users',