mirror of https://github.com/msgbyte/tailchat
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
708 B
708 B
title | authors | image | slug | keywords | tags | |
---|---|---|---|---|---|---|
Group view panel permission problem | moonrailgun | /img/logo.svg | view-panel-permission |
|
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" } })