Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't request on behalf with the API. #4915

Closed
Fire-Swan opened this issue Apr 27, 2023 · 2 comments
Closed

Can't request on behalf with the API. #4915

Fire-Swan opened this issue Apr 27, 2023 · 2 comments

Comments

@Fire-Swan
Copy link
Contributor

Fire-Swan commented Apr 27, 2023

Describe the bug
When doing a request through the API with a value for requestOnBehalf I get this error "You do not have the correct permissions to request on behalf of users!". If I don't put any values for requestOnBehalf the requests goes through. Same issue also happens in swagger.
The API key doesn't give the privilege to request on behalf

To Reproduce
Steps to reproduce the behavior:

  1. Go to swagger
  2. Set the API key
  3. Go to Post /api/v1/Request/movie or /api/v2/Requests/tv
  4. Click on Try it out
  5. Make sure there's a value for requestOnBehalf
  6. Click on Execute
  7. See error

Expected behavior
The request should go though.
In Ombi, under request, the Requested By should show the value entered on step 5

Screenshots
I can add screenshots if needed, but should be easy to reproduce with swagger.

Logs (Logs directory where Ombi is located)
{
result: false,
message: 'You do not have the correct permissions to request on behalf of users!',
isError: true,
errorMessage: 'You do not have the correct permissions to request on behalf of users!',
errorCode: null,
requestId: 0
}.

Desktop (please complete the following information):

  • OS: Windows 10

Ombi Version (please complete the following information):

  • Version 4.35.10
  • Media Server: Plex but not used in this case
  • Database Type: SQLite

Additional context

@github-actions
Copy link

Hi!

Thanks for the issue report. Before a real human comes by, please make sure you used our bug report format.

Have you looked at the wiki yet? https://docs.ombi.app/

Before posting make sure you also read our FAQ.

Make the title describe your issue. Having 'not working' or 'I get this bug' for 100 issues, isn't really helpful.

If we need more information or there is some progress we tag the issue or update the tag and keep you updated.

Thanks!

Ombi Bot.

@sephrat
Copy link
Contributor

sephrat commented May 17, 2023

Fixed in v4.38.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants