This patch adds a 'New user registration by invitation only.' option into the 'User registration settings'.
When this option is selected, the 'user/registration' form cannot be accessed by anonymous users and new users cannot register without a valid invite (The admin can ofcourse still create new users).
The 'User login' block also has the 'Create new account' link removed when the option is selected.

I've not set this issue's status to 'patch' as this probably classifies as a quick hack (thus meeting the don't set to patch criteria from some doc somewhere).

Comments

barkbarkuk’s picture

StatusFileSize
new4.83 KB

Forgot to allow users in roles with adequate permissions to allow users to be created regardless. This should fix it.

Nick Wilson’s picture

Assigned: Unassigned » Nick Wilson
Priority: Normal » Minor
Status: Active » Fixed

Done!

thanks very much

Anonymous’s picture

Status: Fixed » Closed (fixed)