The 'edit user' and 'delete user' workflows run through the same function since
the process of deleting a user simply edits them and changes their access level
to 0. Add a check for cmd==25 (edit user) before asking the user if they want
to change the email addresses.
}
free(user);
- if (boolprompt("Edit this user's Internet email addresses", 0)) {
- edit_user_internet_email_addresses(ipc, who);
+ if (cmd == 25) { // user edit
+ if (boolprompt("Edit this user's Internet email addresses", 0)) {
+ edit_user_internet_email_addresses(ipc, who);
+ }
}
}