TechForPR / chefsForPR

Platform to manage the distribution of meals created by World Kitchen
http://chefs4pr.com
MIT License
3 stars 2 forks source link

Create a way to make user admins #2

Open dvidsilva opened 7 years ago

dvidsilva commented 7 years ago

Super admin users can assing new users to be admins, there should be a secret endpoint or a way to do this. Which is not super clear to me.

Or, if easier, describe the steps necesary to do this on the mongod console.

jideokus commented 7 years ago

I'll handle this one. My idea is to manually set up a super admin in the mongoos. That super admin would then be able to use the app to make other users admins when the super admin views the profile. Also admins would be able to create other admins. I'll have a middleware that will reject requests to create admins for non admins or superadmins. Let me know if this works then I'll assign it to myself and get to it.

dvidsilva commented 7 years ago

Hi, perfect, that works, couple of questions.

Thanks!

jideokus commented 7 years ago
jideokus commented 6 years ago

@dvidsilva any updates on this?

dvidsilva commented 6 years ago

Hi, @jideokus yeah i thought you were gonna add some code for us to checkout. we can chat on slack or so, but i think that any route you take will be good. lmk!

jideokus commented 6 years ago

Ah my bad. I'll get to it pronto.

On Mon, Oct 30, 2017 at 9:49 AM, Dvid Silva notifications@github.com wrote:

Hi, @jideokus https://github.com/jideokus yeah i thought you were gonna add some code for us to checkout. we can chat on slack or so, but i think that any route you take will be good. lmk!

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/TechForPR/chefsForPR/issues/2#issuecomment-340488065, or mute the thread https://github.com/notifications/unsubscribe-auth/AIOZHvzHwvT7U3i4eOjslQnl-sKCZlM0ks5sxfAigaJpZM4P5Ilx .

-- Babajide J. Okusanya