scorelab / OpenMF

An Open Source Mobile Forensics Investigation Tool for Android Platform
Apache License 2.0
150 stars 97 forks source link

[Backend] Profile route should be flexible for admin and user both roles #80

Closed sachinsom93 closed 3 years ago

sachinsom93 commented 3 years ago

Describe the bug Profile route is not flexible for giving responses differently for admin and users. When an admin sends a request to profile route it should return information regarding it's users also, but it is giving only email, name, user_id, timestamps.

To Reproduce Steps to reproduce the behavior:

  1. Create a account for admin role and login
  2. Send a request to Profile route
  3. You will not find information regarding your users

Expected behavior A clear and concise description of what you expected to happen.

Screenshots If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

Smartphone (please complete the following information):

Additional context Add any other context about the problem here.