hswolff / votey-uppy

https://votey-uppy.vercel.app
99 stars 18 forks source link

how to set admin role? #15

Closed kleutzinger closed 3 years ago

kleutzinger commented 3 years ago

I've got the app deployed successfully, but I can't find a way to set admin role for my account on my instance. Thanks!

image

hswolff commented 3 years ago

Ah! Good point! Let me update the docs to show this. Will do so tonight.

hswolff commented 3 years ago

Basically on the users collection you have to run the following for the user you want to be the admin:

db.users.update(   { _id: ObjectId('600c75000307d1df954899e3') },  {role: 'admin' } );
hswolff commented 3 years ago

Fixed via https://github.com/hswolff/votey-uppy/commit/7cc7c23127f5c57a9cffd37293db2b61ca970cce