Skip to content

Commit

Permalink
FIX Dolibarr#30523 An user with only user->rights->user->self->passwo…
Browse files Browse the repository at this point in the history
…rd can't update it's password
  • Loading branch information
FlorentPoinsaut committed Aug 1, 2024
1 parent cbc28b0 commit d403e24
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion htdocs/user/card.php
Original file line number Diff line number Diff line change
Expand Up @@ -401,7 +401,7 @@
}
}

if ($action == 'update' && $canedituser) {
if ($action == 'update' && ($canedituser || $caneditpasswordandsee)) {
require_once DOL_DOCUMENT_ROOT.'/core/lib/files.lib.php';

if ($caneditfield) { // Case we can edit all field
Expand Down

0 comments on commit d403e24

Please sign in to comment.