Ensure events are run with DB level permissions
This commit is contained in:
parent
93b11514c5
commit
9b4ff941b6
1 changed files with 2 additions and 0 deletions
|
@ -221,6 +221,8 @@ func (d *document) event(ctx context.Context, when method) (err error) {
|
|||
vars.Set(d.initial.Data(), varKeyBefore)
|
||||
ctx = context.WithValue(ctx, ctxKeySpec, vars)
|
||||
|
||||
ctx = context.WithValue(ctx, ctxKeyKind, cnf.AuthDB)
|
||||
|
||||
for _, ev := range evs {
|
||||
|
||||
val, err := d.i.e.fetch(ctx, ev.When, d.current)
|
||||
|
|
Loading…
Reference in a new issue