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

brooke_heaton created an issue. See original summary.

brooke_heaton’s picture

Issue summary: View changes

andyd328’s picture

Version: 8.x-1.x-dev » 2.0.0-beta1
Assigned: Unassigned » andyd328
Status: Active » Fixed

Thanks @brooke_heaton. Pushed into v2beta2

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.