SocialHackersClass10 / ChalleduApp

This repository contains the Code of the project, ChalleduApp, as a result of the collaboration between SHA-students of Class 10 & Challedu.com.
1 stars 5 forks source link

Update endpoints' results based on the role #66

Closed zannis closed 4 years ago

zannis commented 4 years ago

This ticket depends on the jwt middleware ticket to be needed first.

Acceptance criteria Update get users, get single user, get all NGOs and get single NGO endpoints as follows: If the request is made by a simple user (NGO or independent) return only the users with document state 'Approved' If t the request is made by an admin, return all users.