mirror of
https://github.com/pocket-id/pocket-id.git
synced 2025-12-09 14:42:59 +03:00
🐛 Bug Report: DEV Image cannot create non admin users #473
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @donkevlar on GitHub.
Reproduction steps
Using the dev docker image. Create a new user in the UI with all details. Leaving "Admin" box as false.
Expected behavior
Create the non-admin new user without errors.
Actual Behavior
Prompts with a 'isAdmin' is required. Note that if you do check 'Admin' this prompt goes away and the user is created successfully. However, you cannot remove the admin role from a user once it has been added also.
Log spits out:
Error #01: Key: 'UserCreateDto.IsAdmin' Error:Field validation for 'IsAdmin' failed on the 'required' tag@stonith404 commented on GitHub:
Thanks for reporting. This should be fixed.