You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
accidental deletion of the one and only admin #102
The workaround I used was manually changing the admin status of the user: mongo to access command line, then use admin, and db.users.find().pretty() to find the user.
Activity
pshirlyn commentedon Nov 28, 2018
The workaround I used was manually changing the admin status of the user:
mongoto access command line, thenuse admin, anddb.users.find().pretty()to find the user.You can update the admin status of this user with
db.users.update(); see https://docs.mongodb.com/manual/reference/method/db.collection.update/ for more information.If someone else has an easier fix, please let me know!
SalahEddineBC commentedon Dec 6, 2018
you can update any user manually and give him admin privileges from the database directly