From c3af03c269e66c06680e38218ae9027409acc486 Mon Sep 17 00:00:00 2001 From: Luke Pulverenti Date: Thu, 19 Sep 2013 16:03:14 -0400 Subject: [PATCH] added ControllableByUserId to sessions url --- dashboard-ui/scripts/remotecontrol.js | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/dashboard-ui/scripts/remotecontrol.js b/dashboard-ui/scripts/remotecontrol.js index a54eae18de..db662b276e 100644 --- a/dashboard-ui/scripts/remotecontrol.js +++ b/dashboard-ui/scripts/remotecontrol.js @@ -1030,12 +1030,17 @@ var self = this; + var sessionQuery = { + SupportsRemoteControl: true, + ControllableByUserId: Dashboard.getCurrentUserId() + }; + self.showMenuForItem = function (options) { - showMenuForItem(options, ApiClient.getSessions({ SupportsRemoteControl: true })); + showMenuForItem(options, ApiClient.getSessions(sessionQuery)); }; self.showMenu = function () { - ApiClient.getSessions({ SupportsRemoteControl: true }).done(function (sessions) { + ApiClient.getSessions(sessionQuery).done(function (sessions) { showMenu(sessions);