Add a feature flag to disable user creation
This commit is contained in:
parent
5c18ffe67d
commit
c682899861
7 changed files with 22 additions and 6 deletions
|
@ -195,6 +195,7 @@ class User(ApiResource):
|
|||
|
||||
return user_view(user)
|
||||
|
||||
@show_if(features.USER_CREATION)
|
||||
@nickname('createNewUser')
|
||||
@parse_args
|
||||
@query_param('inviteCode', 'Invitation code given for creating the user.', type=str,
|
||||
|
|
Reference in a new issue