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

Closed
opened 2026-04-25 00:05:13 +02:00 by adam · 1 comment
Owner

Originally created by @nichwall on GitHub (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.
https://github.com/advplyr/audiobookshelf/blob/48f232790a5026ac886564ef57660a338a168187/server/controllers/UserController.js#L228-L230

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

Originally created by @nichwall on GitHub (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. https://github.com/advplyr/audiobookshelf/blob/48f232790a5026ac886564ef57660a338a168187/server/controllers/UserController.js#L228-L230 ### 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 ```shell No logs generated ``` ### Additional Notes _No response_
adam added the bug label 2026-04-25 00:05:13 +02:00
adam closed this issue 2026-04-25 00:05:13 +02:00
Author
Owner

@github-actions[bot] commented on GitHub (Sep 3, 2024):

Fixed in v2.13.3.

@github-actions[bot] commented on GitHub (Sep 3, 2024): Fixed in [v2.13.3](https://github.com/advplyr/audiobookshelf/releases/tag/v2.13.3).
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/audiobookshelf#2227