- 🇮🇱Israel jsacksick
Why are you making this call as authenticated if I may ask?
- 🇧🇪Belgium wim leers Ghent 🇧🇪🇪🇺
The same is true for core's
/user/registerroute:user.register: path: '/user/register' defaults: _entity_form: 'user.register' _title: 'Create new account' requirements: _access_user_register: 'TRUE'access_check.user.register: class: Drupal\user\Access\RegisterAccessCheck tags: - { name: access_check, applies_to: _access_user_register }class RegisterAccessCheck implements AccessInterface { public function access(AccountInterface $account) { $user_settings = \Drupal::config('user.settings'); return AccessResult::allowedIf($account->isAnonymous() && $user_settings->get('register') != UserInterface::REGISTER_ADMINISTRATORS_ONLY)->addCacheableDependency($user_settings); } }This is intentional.
- Issue was unassigned.
- Status changed to Closed: works as designed
almost 2 years ago 9:33am 7 December 2023