Repository navigation
Description
In the CP member list, pending member toolbar should show a 'Resend email' option for member types that require an email of some sort:
But the conditional appears to be wrong.
cp/membermanager/columns/Manage.php:
if ($member->role_id == Member::PENDING) {
$toolbar['approve'] = array(
'href' => ee('CP/URL')->make('members/approve/' . $member->getId()),
'title' => lang('approve'),
);
if (ee()->config->item('req_mbr_activation') !== 'email' && ee('Permission')->can('edit_members')) {
$toolbar['resend'] = array(
'href' => '#',
'title' => lang('resend'),
'rel' => 'modal-confirm-rename-file',
'class' => 'm-link',
'data-file-id' => $member->getId(),
);
}
if (ee('Permission')->has('can_delete_members')) {
$toolbar['decline'] = array(
'href' => '',
'class' => 'm-link with-divider',
'rel' => 'modal-confirm-decline',
'data-file-id' => $member->getId(),
'title' => lang('decline'),
);
}
} else {
This bit:
if (ee()->config->item('req_mbr_activation') !== 'email' && ee('Permission')->can('edit_members')) {
There are 3 options for member activation- 'none' they are just automatically in and pending really shouldn't matter, email where they get an email with a verification link in it, and moderator only, where the moderator manually approves and an email is sent out informing them (I think).
We definitely want a 'resend' for the 'email' option, which is the one we're saying DON'T show it for. I can imagine wanting to resend the 'Moderated' one as well, but I don't think it's ever worked that way and haven't checked to see whether it would go out on a resend or not. But at the lease, we want to resend the email verification.
I didn't just fix it because we really do need to double check what email(s) are going out when you click 'resend' and make sure all the logic works.
Activity
Resolved #4451 where "Resend activation emaIl" link was not working c…
Merge pull request #4453 from ExpressionEngine/bug/7.x/resend-activat…