From 7525ff9e61e6290463cda38ab59b9e29f0f0aca9 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..a4016f0 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 board.kaputt.cloud db bash +# mongo +> use wekan +> db.users.find({'username': ''}) +> db.users.updateOne({'_id': '<_id from result above>'}, {$set: {'isAdmin': true}}) +```