mirror of https://github.com/msgbyte/tailchat
docs: add view panel permission related instructions blog
parent
3c1d8efe03
commit
4ac6a0759a
@ -0,0 +1,29 @@
|
||||
---
|
||||
title: Group view panel permission problem
|
||||
authors: moonrailgun
|
||||
image: /img/logo.svg
|
||||
slug: view-panel-permission
|
||||
keywords:
|
||||
- tailchat
|
||||
tags: []
|
||||
---
|
||||
|
||||
Because of new version of group permission, all group user which create group before cannot view panel because of lost view panel permission.
|
||||
|
||||
To batch update all group permission, you may need this script below.
|
||||
|
||||
Go into mongodb bash, you can use script in bash like its operation: `docker exec -it <your-mongodb-container-name> mongo`
|
||||
|
||||
|
||||
|
||||
### switch to tailchat db
|
||||
|
||||
```
|
||||
use tailchat
|
||||
```
|
||||
|
||||
### update all group and append `core.viewPanel` permission to all group
|
||||
|
||||
```
|
||||
db.groups.updateMany({}, { $addToSet: { fallbackPermissions: "core.viewPanel" } })
|
||||
```
|
Loading…
Reference in New Issue