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

[Bug]: Cannot set email for root user #3366

Closed
nichwall opened this issue Sep 2, 2024 · 1 comment
Closed

[Bug]: Cannot set email for root user #3366

nichwall opened this issue Sep 2, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@nichwall
Copy link
Contributor

nichwall commented Sep 2, 2024

What happened?

Attempt to set email for root user when logged in as the root user causes an error of Invalid account type.

It looks like this is due to the validation not including the root account type due to groups validation from OAuth and the root account being a specific type that cannot be overridden.

if (updatePayload.type && !Database.userModel.accountTypes.includes(updatePayload.type)) {
return res.status(400).send('Invalid account type')
}

What did you expect to happen?

Email to be set for root user.

Steps to reproduce the issue

  1. Log in as root user
  2. Try to change the root user

Audiobookshelf version

2.13.2

How are you running audiobookshelf?

Built from source

What OS is your Audiobookshelf server hosted from?

Linux

If the issue is being seen in the UI, what browsers are you seeing the problem on?

None

Logs

No logs generated

Additional Notes

No response

@nichwall nichwall added the bug Something isn't working label Sep 2, 2024
advplyr added a commit that referenced this issue Sep 2, 2024
@advplyr advplyr added the awaiting release Issue is resolved and will be in the next release label Sep 2, 2024
Copy link

github-actions bot commented Sep 2, 2024

Fixed in v2.13.3.

@github-actions github-actions bot closed this as completed Sep 2, 2024
@github-actions github-actions bot removed the awaiting release Issue is resolved and will be in the next release label Sep 2, 2024
nichwall pushed a commit to nichwall/audiobookshelf that referenced this issue Sep 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants