You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
First of all, not sure if this is a bug or I'm missing something.
I'm trying to login using the admin-api and perform some queries as a seller account and show his channel information.
The ActiveChannel query returns a "You are not currently authorized to perform this action" (FORBIDDEN) error unless the user is logged in as an administrator.
So this prevents seller users from retrieving their active channel, even if they are authenticated and assigned to a channel.
To Reproduce
Steps to reproduce the behavior:
Log in using the login mutation with valid seller scredentials:
Describe the bug
First of all, not sure if this is a bug or I'm missing something.
I'm trying to login using the admin-api and perform some queries as a seller account and show his channel information.
The
ActiveChannel
query returns a"You are not currently authorized to perform this action" (FORBIDDEN)
error unless the user is logged in as an administrator.So this prevents seller users from retrieving their active channel, even if they are authenticated and assigned to a channel.
To Reproduce
Steps to reproduce the behavior:
Log in using the login mutation with valid seller scredentials:
Response:
Attempt to fetch the active channel using the ActiveChannel query:
Response:
Expected behavior
The ActiveChannel query should return the active channel for any authenticated user, not only for administrators.
Environment (please complete the following information):
Additional context
I want to build an admin panel for the sellers in a multi vendor setup, i need channel information of currently logged in user
The text was updated successfully, but these errors were encountered: