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

admin and seller dashboard #4

Open
avinashrouthu opened this issue Dec 7, 2020 · 1 comment
Open

admin and seller dashboard #4

avinashrouthu opened this issue Dec 7, 2020 · 1 comment

Comments

@avinashrouthu
Copy link

avinashrouthu commented Dec 7, 2020

hi,project is awesome but i cannot find admin and seller dashboard though i updated values in mongo atlas.

should the admin be both customer and admin or only admin:true is enough

@moelashmawy
Copy link
Owner

hi,project is awesome but i cannot find admin and seller dashboard though i updated values in mongo atlas.

should the admin be both customer and admin or only admin:true is enough

Hello, sorry for late reply,
so any user is a customer by default, you will only see the seller dashboard if you are a seller and that's easy, after the user register he can just go to settings and apply for being a seller and he will be a seller.
you won't see the admin dashboard until you become an admin, i know it's not a good approach what i've done in the code, that you only can create your first admin from the code itself by switching admin ti true and register a new user then turn it back to false, after you have your first admin after that from the dashboard you have all the permissions, you can create other admins, you can control products, you can deactivate other users, etc...

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