aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPanagiotis Karalis <pkaralis@intracom-telecom.com>2019-04-08 12:40:31 +0300
committerPanagiotis Karalis <pkaralis@intracom-telecom.com>2019-04-10 18:26:27 +0300
commitd32ce7d109fb36277681629c8e648777664862b2 (patch)
treea0d2cc2f3da3a07cd222b5b29b40175cb0c166e4
parentc64b58a5a89ae7ac51f4f7b41e2842980e112346 (diff)
Fixing bug related to the ONAP results page
If anyone without access (i.e. without 'user' role in the profile) tries to connect at 'user_results' page, no permissions to upload new results should be granted. Change-Id: Ice7418c16fe1fcff7133eca537b10f4f05a3e491 Signed-off-by: Panagiotis Karalis <pkaralis@intracom-telecom.com>
-rw-r--r--3rd_party/static/onap-ui/components/results/results.html3
1 files changed, 2 insertions, 1 deletions
diff --git a/3rd_party/static/onap-ui/components/results/results.html b/3rd_party/static/onap-ui/components/results/results.html
index ce43036..ab2e999 100644
--- a/3rd_party/static/onap-ui/components/results/results.html
+++ b/3rd_party/static/onap-ui/components/results/results.html
@@ -1,7 +1,8 @@
<div class="container-fluid common-main-container">
<h3>{{ctrl.pageHeader}}</h3>
<p>{{ctrl.pageParagraph}}</p>
- <form class="form-inline" ng-show="ctrl.isUserResults">
+ <form class="form-inline" ng-show="ctrl.isUserResults"
+ ng-if="auth.isAuthenticated && auth.currentUser.role.indexOf('user') != -1">
<h4>Upload Results
<i class="glyphicon glyphicon-question-sign opnfv-blue"
uib-tooltip="results file is logs.xxx.tar.gz under your dovetail installation path"></i>