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

Added permitted authorities for a user in the /api/v1/user endpoint #99

Merged
merged 1 commit into from
Feb 4, 2017

Conversation

gibarsin
Copy link
Collaborator

@gibarsin gibarsin commented Feb 4, 2017

Summary

When accessing a user's logged in information (GET to /api/v1/user), the authorities which are allowed for it are returned too

Example

When accessing the GET endpoint /api/v1/user this look alike JSON is returned:

{
"address": {
"city": "Asdasd",
"country": "Aqeqwe",
"door": "",
"neighborhood": "Asda",
"number": 2222,
"street": "Asdasd"
},
"authorities": [
"VIEW_STUDENTS",
"STUDENT",
"VIEW_GRADES",
"VIEW_INSCRIPTIONS",
"EDIT_STUDENT",
"VIEW_COURSE",
"VIEW_GRADE",
"VIEW_COURSES",
"CHANGE_PASSWORD",
"VIEW_STUDENT",
"VIEW_INSCRIPTION"
],
"dni": 382123123,
"docket": 8,
"email": "S382123123@bait.edu.ar",
"firstName": "Asdasd",
"genre": "N",
"lastName": "Asdasd",
"role": "STUDENT"
}

Trello Card

https://trello.com/c/wwDM2CaW/109-devolver-authorities-permitidas-para-un-usuario-loggeado

…removed /api/v1/users endpoint (to get all the authorities)
@gibarsin gibarsin merged commit 2bda23d into development Feb 4, 2017
@gibarsin gibarsin deleted the authorities branch February 4, 2017 15:13
MatiasComercio pushed a commit that referenced this pull request Feb 5, 2017
…removed /api/v1/users endpoint (to get all the authorities) (#99)
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.

2 participants