From 03963579a1066e5b16c98d2039d93895b6058e73 Mon Sep 17 00:00:00 2001 From: Randall Morey Date: Fri, 26 Feb 2021 16:17:30 -0500 Subject: [PATCH] =?UTF-8?q?feat:=20=F0=9F=8E=B8=20filter=20desktop=20targe?= =?UTF-8?q?ts=20by=20authorize-session=20action?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ui/desktop/app/routes/scopes/scope/projects/targets.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/ui/desktop/app/routes/scopes/scope/projects/targets.js b/ui/desktop/app/routes/scopes/scope/projects/targets.js index 867011648..f16ccb61e 100644 --- a/ui/desktop/app/routes/scopes/scope/projects/targets.js +++ b/ui/desktop/app/routes/scopes/scope/projects/targets.js @@ -52,7 +52,11 @@ export default class ScopesScopeProjectsTargetsRoute extends Route { async model() { const { id: scope_id } = this.modelFor('scopes.scope'); await this.refreshSessions(); - return this.store.query('target', { recursive: true, scope_id }); + return this.store.query('target', { + filter: '"authorize-session" in "/item/authorized_actions"', + recursive: true, + scope_id + }); } /**