| @@ 438-448 (lines=11) @@ | ||
| 435 | $activationKeyIsValid = false; |
|
| 436 | // check right to subscribe directly |
|
| 437 | $allowedWithoutActivationKey = false; |
|
| 438 | if ($uid > 0) { |
|
| 439 | // if not anonymous subscriber / subscriber is a Xoops user |
|
| 440 | $submitter_email = $xoopsUser->email(); |
|
| 441 | foreach ($xoopsUser->getGroups() as $group) { |
|
| 442 | if (in_array($group, $helper->getConfig('xn_groups_without_actkey')) |
|
| 443 | || XOOPS_GROUP_ADMIN == $group) { |
|
| 444 | $allowedWithoutActivationKey = true; |
|
| 445 | break; |
|
| 446 | } |
|
| 447 | } |
|
| 448 | } |
|
| 449 | // if anonymous subscriber |
|
| 450 | // NOP |
|
| 451 | ||
| @@ 903-913 (lines=11) @@ | ||
| 900 | $activationKeyIsValid = false; |
|
| 901 | // check right to unsubscribe directly |
|
| 902 | $allowedWithoutActivationKey = false; |
|
| 903 | if ($uid > 0) { |
|
| 904 | // if not anonymous subscriber / subscriber is a Xoops user |
|
| 905 | $submitter_email = $xoopsUser->email(); |
|
| 906 | foreach ($xoopsUser->getGroups() as $group) { |
|
| 907 | if (in_array($group, $helper->getConfig('xn_groups_without_actkey')) |
|
| 908 | || XOOPS_GROUP_ADMIN == $group) { |
|
| 909 | $allowedWithoutActivationKey = true; |
|
| 910 | break; |
|
| 911 | } |
|
| 912 | } |
|
| 913 | } |
|
| 914 | // if anonymous subscriber |
|
| 915 | // NOP |
|
| 916 | ||