From 3e10b7b2b197c856285679def491a61d37ec3717 Mon Sep 17 00:00:00 2001 From: Philip Mooney Date: Sat, 19 Sep 2020 22:16:16 +0100 Subject: [PATCH] Fix for access list getAll when not granted all permissions --- backend/internal/access-list.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/internal/access-list.js b/backend/internal/access-list.js index c70a53a1..79daa25b 100644 --- a/backend/internal/access-list.js +++ b/backend/internal/access-list.js @@ -384,7 +384,7 @@ const internalAccessList = { .orderBy('access_list.name', 'ASC'); if (access_data.permission_visibility !== 'all') { - query.andWhere('owner_user_id', access.token.getUserId(1)); + query.andWhere('access_list.owner_user_id', access.token.getUserId(1)); } // Query is used for searching