Skip to content

User Permissions - NaN is being passed as teamId #2142

@sohel-rp

Description

@sohel-rp

Checklist:

  • I've searched in the docs and FAQ for my answer
  • I've included steps to reproduce the bug.

Describe the bug

On the user permissions page, when a logged-in user doesn't have access to a certain project (E.g. dev-test) and tries to access a specific user who has access to it then NaN is being passed as teamId to the API causing the API to fail & isn't loading the projects/permissions list.

To Reproduce

  1. Go to User Permissions on Global Configurations
  2. Try to access another user which has access to a certain project but you (logged in) don't.
  3. Open the network tab under developer tools
  4. Observe

Expected behavior

It should not pass NaN as teamId to API & load the projects that the logged-in user has access to.

Current behavior

It's passing NaN to API & isn't loading the projects/permissions list.

Screenshots

Screenshot 2022-08-07 at 9.18.20 PM.png

AB#46

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions