diff options
author | Stamatis Katsaounis <mokats@intracom-telecom.com> | 2018-08-30 11:30:05 +0300 |
---|---|---|
committer | Stamatis Katsaounis <mokats@intracom-telecom.com> | 2018-08-30 11:30:05 +0300 |
commit | df480a31dcbcc8c7a5373419d0a7561f548e1c52 (patch) | |
tree | 514f23373bcf9bd5225604d41b64cbd1b4f3de49 /3rd_party/static/testapi-ui/components/results/resultsController.js | |
parent | be9e0c7bd184cf7624753c8166e51dbc858d3717 (diff) |
Disable Community Results page and restrict access to results
to logged in users
JIRA: DOVETAIL-736
This patch disables the Community Results page. Furthermore,
allows only logged in users to fetch results from the rest api.
Finally, fixes a minor bug on the javascript side, where the name
of the logged in user is stored.
Change-Id: Iedf1f170746501455662dc7e1d01ae0508f79488
Signed-off-by: Stamatis Katsaounis <mokats@intracom-telecom.com>
Diffstat (limited to '3rd_party/static/testapi-ui/components/results/resultsController.js')
-rw-r--r-- | 3rd_party/static/testapi-ui/components/results/resultsController.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/3rd_party/static/testapi-ui/components/results/resultsController.js b/3rd_party/static/testapi-ui/components/results/resultsController.js index aa593dc..03c367c 100644 --- a/3rd_party/static/testapi-ui/components/results/resultsController.js +++ b/3rd_party/static/testapi-ui/components/results/resultsController.js @@ -111,7 +111,7 @@ // need auth to browse ctrl.isUserResults = $state.current.name === 'userResults'; - ctrl.currentUser = $scope.auth.name; + ctrl.currentUser = $scope.auth.currentUser ? $scope.auth.currentUser.openid : null; console.log($scope.auth); // Should only be on user-results-page if authenticated. |