| @@ 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 | ||
| @@ 890-900 (lines=11) @@ | ||
| 887 | $activationKeyIsValid = false; |
|
| 888 | // check right to unsubscribe directly |
|
| 889 | $allowedWithoutActivationKey = false; |
|
| 890 | if ($uid > 0) { |
|
| 891 | // if not anonymous subscriber / subscriber is a Xoops user |
|
| 892 | $submitter_email = $xoopsUser->email(); |
|
| 893 | foreach ($xoopsUser->getGroups() as $group) { |
|
| 894 | if (in_array($group, $helper->getConfig('xn_groups_without_actkey')) |
|
| 895 | || XOOPS_GROUP_ADMIN == $group) { |
|
| 896 | $allowedWithoutActivationKey = true; |
|
| 897 | break; |
|
| 898 | } |
|
| 899 | } |
|
| 900 | } |
|
| 901 | // if anonymous subscriber |
|
| 902 | // NOP |
|
| 903 | ||