changeset 5033:13d9820c1ea4

Run review decisions SQLs as reviewer instead of queue user to use the rls policies.
author Sascha L. Teichmann <sascha.teichmann@intevation.de>
date Fri, 20 Mar 2020 10:54:41 +0100
parents afc242588642
children 59a99655f34d
files pkg/imports/queue.go
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/pkg/imports/queue.go	Thu Mar 19 17:36:20 2020 +0100
+++ b/pkg/imports/queue.go	Fri Mar 20 10:54:41 2020 +0100
@@ -535,7 +535,7 @@
 		ctx = context.Background()
 	}
 
-	return auth.RunAs(ctx, queueUser, func(conn *sql.Conn) error {
+	return auth.RunAs(ctx, reviewer, func(conn *sql.Conn) error {
 		tx, err := conn.BeginTx(ctx, nil)
 		if err != nil {
 			return err