refs #9889, refs #8592
This commit removes support for twitter and linkedin profile pictures,
as they are too small.
Test plan:
* rake db:migrate
* go view some profile pages
* the profile pics should not be ghetto-scaled
Change-Id: Ibea84420351cabbb496b1a8e5860d6e5834bb8ac
Reviewed-on: https://gerrit.instructure.com/13030
Reviewed-by: Brian Palmer <brianp@instructure.com>
Tested-by: Jenkins <jenkins@instructure.com>
This adds some new fields to the files/folders api:
Folders:
* hidden
* hidden_for_user
* locked
* locked_for_user
Attachments:
* created_at
* updated_at
* locked
* locked_for_user
* lock_at
* unlock_at
* hidden
* hidden_for_user
Test Plan:
* Use the api and observe the fancy new fields
closes#9625
Change-Id: Ib5ca2fe70bc283216c3f643a9e6b82bac9e31f73
Reviewed-on: https://gerrit.instructure.com/12508
Tested-by: Jenkins <jenkins@instructure.com>
Reviewed-by: Cody Cutrer <cody@instructure.com>
this commit provides a new api endpoint that exposes the possible profile
pictures of a given user that can be set as her avatar. it also modifies the
existing user update api to allow the avatar image to be set. this permission
is given to the user herself and any account admin that has manage student
permissions
test-plan:
- make sure editing a user from the /users/x page and the /profile page still
works.
- with the api, try querying the users profile pictures, and setting a new
avatar.
- make sure to exercise different permissions:
* look up and change your own avatar => should succeed
* as an admin, look up and change a student's avatar => should succeed
* as a student, try to change another student's avatar => should return 401
Change-Id: Idefe8549a92e109a248936970f9e3ef2bc414a59
Reviewed-on: https://gerrit.instructure.com/9645
Tested-by: Jenkins <jenkins@instructure.com>
Reviewed-by: Zach Pendleton <zachp@instructure.com>