| @@ 139-144 (lines=6) @@ | ||
| 136 | if ($submitterUid > 0) { |
|
| 137 | // user logged in |
|
| 138 | $submitter_email = $xoopsUser->email(); |
|
| 139 | foreach ($xoopsUser->getGroups() as $group) { |
|
| 140 | if (in_array($group, $xnewsletter->getConfig('xn_groups_without_actkey')) || XOOPS_GROUP_ADMIN == $group) { |
|
| 141 | $allowedWithoutActivationKey = true; |
|
| 142 | break; |
|
| 143 | } |
|
| 144 | } |
|
| 145 | } else { |
|
| 146 | // user not logged in |
|
| 147 | // NOP |
|
| @@ 585-590 (lines=6) @@ | ||
| 582 | } else { |
|
| 583 | // user logged in |
|
| 584 | $allowedWithoutActivationKey = false; |
|
| 585 | foreach ($xoopsUser->getGroups() as $group) { |
|
| 586 | if (in_array($group, $xnewsletter->getConfig('xn_groups_without_actkey')) || XOOPS_GROUP_ADMIN == $group) { |
|
| 587 | $allowedWithoutActivationKey = true; |
|
| 588 | break; |
|
| 589 | } |
|
| 590 | } |
|
| 591 | } |
|
| 592 | ||
| 593 | if ($activationKey || $allowedWithoutActivationKey) { |
|