diff options
| author | qmo-odoo <qmo@odoo.com> | 2019-04-30 08:04:44 +0000 |
|---|---|---|
| committer | Thibault Delavallée <tde@odoo.com> | 2019-05-03 09:43:12 +0000 |
| commit | f4b5b709a1d74f139ca571fec6922f93c11ff8ee (patch) | |
| tree | 13a3b977426eeaea3c6d151481fc412926d9547b /addons | |
| parent | d5468974f73fe183fc4c5c6e22ab8e7c886199e6 (diff) | |
[FIX] website_profile: allow administrators to update profiles
Before this commit, only the users who validated their email could change
their own profile. In addition to that behavior we let administrators update
all profiles.
Commit linked to task ID 1978530 (fixes linked to internal testing).
Diffstat (limited to 'addons')
| -rw-r--r-- | addons/website_profile/views/website_profile.xml | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/website_profile/views/website_profile.xml b/addons/website_profile/views/website_profile.xml index ba222b18f11..1f0d22e4123 100644 --- a/addons/website_profile/views/website_profile.xml +++ b/addons/website_profile/views/website_profile.xml @@ -219,7 +219,7 @@ <h1 class="o_card_people_name"> <span t-field="user.name"/><small t-if="user.karma == 0"> (not verified)</small> </h1> - <a class="btn btn-primary d-none d-md-inline-block" t-if="request.env.user == user and validation_email_done" t-attf-href="/profile/edit?url_param=#{edit_button_url_param}"> + <a class="btn btn-primary d-none d-md-inline-block" t-if="request.env.user == user and validation_email_done or request.env.user._is_admin()" t-attf-href="/profile/edit?url_param=#{edit_button_url_param}"> <i class="fa fa-pencil mr-2"/>EDIT PROFILE </a> </div> |
