From 14cb6ec7416f4717cabb16388d520a8c255044a0 Mon Sep 17 00:00:00 2001 From: Elias Ohm Date: Thu, 2 May 2019 07:35:19 +0200 Subject: [PATCH] use current frame scope for permission filter function calls (cherry picked from commit 53febdea819adf58b20a0141e1a1131658f1338c) --- lib/remote/filterutility.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/remote/filterutility.cpp b/lib/remote/filterutility.cpp index 8a7605ad8..255bb96c6 100644 --- a/lib/remote/filterutility.cpp +++ b/lib/remote/filterutility.cpp @@ -173,7 +173,7 @@ void FilterUtility::CheckPermission(const ApiUser::Ptr& user, const String& perm if (filter && permissionFilter) { std::vector > args; - args.emplace_back(new GetScopeExpression(ScopeLocal)); + args.emplace_back(new GetScopeExpression(ScopeThis)); std::unique_ptr indexer{new IndexerExpression(std::unique_ptr(MakeLiteral(filter)), std::unique_ptr(MakeLiteral("call")))}; FunctionCallExpression *fexpr = new FunctionCallExpression(std::move(indexer), std::move(args)); -- 2.40.0