testplan:
1.log in to Canvas as admin
2.navigate to the Account Settings page
3.tick the 'Enable personal pronouns' box (do NOT tick the "Allow users
to change their pronouns in Canvas" box)
4.tick the 'Enable profiles' box
5.navigate to the User Settings page(Account->Settings)
6.click the 'Edit Settings' button
7.pick a different pronoun and click the 'Update settings' button
8.confirm the pronoun change
9.navigate to the User Profile page(Account->Profile)
10.in the kebab menu choose the 'Edit Profile' option
11.pick a different pronoun and save it
12.confirm the pronoun change
13.log in to Canvas as a user
14.note that you previously set the 'Enable personal pronouns' so the
user can see their pronouns
15.navigate to the User Settings page and click 'Edit settings' button
16.confirm that the user can see their pronoun but can't change it
17.navigate to the User Profile page and click the 'Edit profile' button
18.confirm that the pronoun change box is disabled(can't change it)
19.open Canvas API in Postman
20.add a new request(type:PUT url:/api/v1/users/:id name:Update User)
21.in the Body tab select 'form-data' and add 'user[pronouns]' as key
and a pronoun as value(like 'He/Him')
22.in Canvas API's Authorization tab authorise as admin
23.go the the Update User request and send the preset request
(/api/v1/users/:id <- id should be a user id)
24.note that you previously set the 'Enable personal pronouns' so admin
can change their own pronouns and any other student's pronouns
25.confirm that the response is '200 OK'
26.authorise as user
27.go the the Update User request and send the preset request
(/api/v1/users/:id <- id should be the user's id)
28.confirm that the response is '401 Unauthorized'
refs VICE-3824
flag=none
Change-Id: I1504ac42d0839793b4b5e61c6a6a34f17b4c5aca
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/347345
QA-Review: Caleb Guanzon <cguanzon@instructure.com>
Product-Review: Sam Garza <sam.garza@instructure.com>
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: Roland Beres <roland.beres@instructure.com>