Skip to content
New issue

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

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

Already on GitHub? # to your account

userSchema roles #182

Open
ghost opened this issue Jan 30, 2023 · 2 comments
Open

userSchema roles #182

ghost opened this issue Jan 30, 2023 · 2 comments

Comments

@ghost
Copy link

ghost commented Jan 30, 2023

image

When a new user # and specified that the role is admin. It will create a new user but the role is still user instead of admin.

@ayushkavad
Copy link

ayushkavad commented Feb 3, 2023

hey! @kyahAndoy3zero I have faced the same problem as yours when i was creating a new user. it will create a new user and set the role as default.
solution is that you need to specified the role into # controller.

Screenshot from 2023-02-03 11-30-46

@ghost
Copy link
Author

ghost commented Feb 3, 2023

@ayushkavad Yeah I already did that. I guess there is not much difference since it doesn't have a required field in the schema.

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

No branches or pull requests

1 participant