Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

General Fixes #117

Merged
merged 2 commits into from
Feb 5, 2017
Merged

General Fixes #117

merged 2 commits into from
Feb 5, 2017

Conversation

gibarsin
Copy link
Collaborator

@gibarsin gibarsin commented Feb 5, 2017

Summary

  • Remove Spring Security filter for VIEW_COURSE_FINAL_INSCRIPTIONS, VIEW_STUDENTS_APPROVED and VIEW_COURSE_STUDENT authorities
  • To qualify a final for a student, the user must be have ADMIN authority
  • Fix admin / student creation endpoints to support address
  • Fix case where a student is tried to be created with an admin's dni or viceversa (the check was being made only for the corresponding Role and not for users in general)
  • Return 409 CONFLICT and return a JSON with conflictField when trying to update a course's information (courseId or semester fields)
  • Return 409 CONFLICT when trying to change password and the old password does not match the one in the database
  • Return 404 NOT FOUND in case the user does not exist when resetting or changing password
  • Changed permissions to change other user's password
  • Restrict student access for GET /students/{docket} to itself and to admins
  • Allow updating information with the same courseId and returning the Location header only if the courseId is changed, else return 204 No content

Trello Card

https://trello.com/c/5EeWCpcl/116-general-fixes

- Remove Spring Security filter for VIEW_COURSE_FINAL_INSCRIPTIONS, VIEW_STUDENTS_APPROVED and VIEW_COURSE_STUDENT authorities
- To qualify a final for a student, the user must be have ADMIN authority
- Fix admin / student creation endpoints to support address
- Fix case where a student is tried to be created  with an admin's dni or viceversa (the check was being made only for the corresponding Role and not for users in general)
- Return 409 CONFLICT and return a JSON with conflictField when trying to update a course's information (courseId or semester fields)
- Return 409 CONFLICT when trying to change password and the old password does not match the one in the database
- Return 404 NOT FOUND in case the user does not exist when resetting or changing password
- Changed permissions to change other user's password
- Restrict student access for GET /students/{docket} to itself and to admins
…ocation header only if the courseId is changed, else return 204 No content
@gibarsin gibarsin merged commit d6af4e5 into development Feb 5, 2017
@gibarsin gibarsin deleted the temporaryWebAuthPermissions branch February 5, 2017 17:51
MatiasComercio pushed a commit that referenced this pull request Feb 5, 2017
- Remove Spring Security filter for VIEW_COURSE_FINAL_INSCRIPTIONS, VIEW_STUDENTS_APPROVED and VIEW_COURSE_STUDENT authorities
- To qualify a final for a student, the user must be have ADMIN authority
- Fix admin / student creation endpoints to support address
- Fix case where a student is tried to be created  with an admin's dni or viceversa (the check was being made only for the corresponding Role and not for users in general)
- Return 409 CONFLICT and return a JSON with conflictField when trying to update a course's information (courseId or semester fields)
- Return 409 CONFLICT when trying to change password and the old password does not match the one in the database
- Return 404 NOT FOUND in case the user does not exist when resetting or changing password
- Changed permissions to change other user's password
- Restrict student access for GET /students/{docket} to itself and to admins
- Allow updating information with the same courseId and returning the Location header only if the courseId is changed, else return 204 No content
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants