1
0
mirror of https://github.com/mattermost/focalboard.git synced 2025-07-15 23:54:29 +02:00

Implement permissions specs for mentions. (#2758)

* Implement permissions specs for mentions.
- public boards: admin, editor, commenter can mention team members and auto-add them to board; guests can mention board members
- private boards:  admin, editor, commenter, guest can mention board members
- viewers cannot mention
This commit is contained in:
Doug Lauder
2022-04-13 18:09:55 -04:00
committed by GitHub
parent 4c61ae9623
commit 89cc947a21
15 changed files with 205 additions and 73 deletions

View File

@ -2,6 +2,7 @@ package utils
import (
"context"
"runtime/debug"
"sync/atomic"
"time"
@ -119,7 +120,11 @@ func (cn *CallbackQueue) exec(f CallbackFunc) {
// don't let a panic in the callback exit the thread.
defer func() {
if r := recover(); r != nil {
cn.logger.Error("CallbackQueue callback panic", mlog.String("name", cn.name), mlog.Any("panic", r))
cn.logger.Error("CallbackQueue callback panic",
mlog.String("name", cn.name),
mlog.Any("panic", r),
mlog.String("stack", string(debug.Stack())),
)
}
}()