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.
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.