From aa06f7456094fcafb073080df6f6fb87de24aa5c Mon Sep 17 00:00:00 2001 From: iexos Date: Tue, 13 Feb 2024 17:03:38 +0100 Subject: [PATCH] add admin promotion to README --- README.md | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 7f374e4..7b4281f 100644 --- a/README.md +++ b/README.md @@ -38,4 +38,16 @@ after mongo conaintainer came up the first time run: ``` abra app run wekan.example.org db mongo > rs.initiate() -``` \ No newline at end of file +``` + +## Promote user to admin + +If using SSO, it might happen that there is no admin user. If so, you can fix it manually in the database: + +``` +$ abra app run db bash +# mongo +> use wekan +> db.users.find({'username': ''}) +> db.users.updateOne({'_id': '<_id from result above>'}, {$set: {'isAdmin': true}}) +```