I may be understanding this wrong, but it seems that in UserReigisterBlock, the block is only accessible if the $account->isAnonymous renders TRUE;
return AccessResult::allowedIf($account->isAnonymous() && ($this->configFactory->getEditable('user.settings')->get('register') != USER_REGISTER_ADMINISTRATORS_ONLY))
If I want to render this block for authenticated users, I would need to remove this check and set the check on the Block settings, which seems more logical.
return AccessResult::allowedIf($this->configFactory->getEditable('user.settings')->get('register') != USER_REGISTER_ADMINISTRATORS_ONLY)
I was only able to get the User Register block to show up by removing the isAnonymous check and setting the permission on the block.
Comments
Comment #2
brooke_heaton commentedComment #4
andyd328Thanks @brooke_heaton. Pushed into v2beta2