inventory-application icon indicating copy to clipboard operation
inventory-application copied to clipboard

admin and seller dashboard

Open avinashrouthu opened this issue 3 years ago • 1 comments

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

avinashrouthu avatar Dec 07 '20 17:12 avinashrouthu

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...

moelashmawy avatar Dec 10 '20 08:12 moelashmawy