allow users api to set public_email

This commit is contained in:
Alexis Reigel 2018-09-26 17:27:26 +02:00
parent f38aa2bf30
commit 801fe04be7
No known key found for this signature in database
GPG key ID: 55ADA7C7B683B329
4 changed files with 26 additions and 21 deletions

View file

@ -70,7 +70,8 @@ module Users
:website_url,
:private_profile,
:organization,
:location
:location,
:public_email
]
end

View file

@ -286,6 +286,7 @@ Parameters:
- `provider` (optional) - External provider name
- `bio` (optional) - User's biography
- `location` (optional) - User's location
- `public_email` (optional) - The public email of the user
- `admin` (optional) - User is admin - true or false (default)
- `can_create_group` (optional) - User can create groups - true or false
- `skip_confirmation` (optional) - Skip confirmation - true or false (default)
@ -317,6 +318,7 @@ Parameters:
- `provider` - External provider name
- `bio` - User's biography
- `location` (optional) - User's location
- `public_email` (optional) - The public email of the user
- `admin` (optional) - User is admin - true or false (default)
- `can_create_group` (optional) - User can create groups - true or false
- `skip_reconfirmation` (optional) - Skip reconfirmation - true or false (default)

View file

@ -42,6 +42,7 @@ module API
optional :provider, type: String, desc: 'The external provider'
optional :bio, type: String, desc: 'The biography of the user'
optional :location, type: String, desc: 'The location of the user'
optional :public_email, type: String, desc: 'The public email of the user'
optional :admin, type: Boolean, desc: 'Flag indicating the user is an administrator'
optional :can_create_group, type: Boolean, desc: 'Flag indicating the user can create groups'
optional :external, type: Boolean, desc: 'Flag indicating the user is an external user'

View file

@ -43,7 +43,8 @@ describe Users::BuildService do
website_url: 1,
private_profile: 1,
organization: 1,
location: 1
location: 1,
public_email: 1
}
end