diff options
| author | Quentin Mourier <qmo@odoo.com> | 2019-05-22 09:09:23 +0000 |
|---|---|---|
| committer | Thibault Delavallée <tde@odoo.com> | 2019-05-22 09:16:30 +0000 |
| commit | 369143c986e45c51bca000c2cef77f73f98f2389 (patch) | |
| tree | ac29dd15ca900088a242f412cf5522346f8e0481 /addons/website_profile/views/website_profile.xml | |
| parent | e87a74e3ca7b6963a41bca007a5be4011b3debc3 (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/views/website_profile.xml')
| -rw-r--r-- | addons/website_profile/views/website_profile.xml | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/addons/website_profile/views/website_profile.xml b/addons/website_profile/views/website_profile.xml index f30170548d7..a1f66e2f485 100644 --- a/addons/website_profile/views/website_profile.xml +++ b/addons/website_profile/views/website_profile.xml @@ -497,6 +497,7 @@ <img class="position-absolute" t-attf-src="/website_profile/static/src/img/rank_#{user['position']}.svg" alt="User rank" style="bottom: 0; right: -10px"/> </div> <h3 class="mt-2 mb-0" t-esc="user['name']"></h3> + <span class="badge badge-danger font-weight-normal px-2" t-if="not user['website_published']">Unpublished</span> <strong class="text-muted" t-esc="user['rank']"/> </div> <div class="row mx-0 o_wprofile_top3_card_footer text-nowrap"> @@ -517,6 +518,9 @@ <span class="font-weight-bold" t-esc="user['name']"/><br/> <span class="text-muted font-weight-bold" t-esc="user['rank']"></span> </td> + <td t-if="not user['website_published']" class="align-middle font-weight-bold text-right text-nowrap"> + <span class="badge badge-danger font-weight-normal px-2 py-1 m-1">Unpublished</span> + </td> <td class="align-middle font-weight-bold text-right text-nowrap"> <b t-esc="user['karma']"/> <span class="text-muted small font-weight-bold">XP</span> </td> |
