Skip to content

Commit

Permalink
FIX missing permission for the action
Browse files Browse the repository at this point in the history
  • Loading branch information
hregis committed Nov 16, 2024
1 parent 58ce4fb commit 3e544c8
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 @@ -784,7 +784,7 @@
if ($action == 'confirm_clone' && $confirm != 'yes') {
$action = '';
}
if ($action == 'confirm_clone' && $confirm == 'yes') {
if ($action == 'confirm_clone' && $confirm == 'yes' && $permissiontocloneuser) {
if (!GETPOST('clone_name')) {
setEventMessages($langs->trans('ErrorNoCloneWithoutName'), null, 'errors');
} elseif (getDolGlobalString('USER_MAIL_REQUIRED') && !GETPOST('new_email')) {
Expand Down

0 comments on commit 3e544c8

Please sign in to comment.