aboutsummaryrefslogtreecommitdiffstats
path: root/3rd_party/static/testapi-ui/app.js
diff options
context:
space:
mode:
authorPanagiotis Karalis <pkaralis@intracom-telecom.com>2019-04-18 18:48:22 +0300
committerPanagiotis Karalis <pkaralis@intracom-telecom.com>2019-04-24 17:04:43 +0300
commitda620c17769c0357e4a9137eedbb7cf044cc38d4 (patch)
treee2008953fa3637cd9da96fece5c2165e703436df /3rd_party/static/testapi-ui/app.js
parent6ade07b42e9ef39dafda4504bc61eb4661b10cde (diff)
Bug fix for ONAP/OVP portals
During portal review, some errors have been noticed and fixed. - 'no role', In the 'My Results' page are displayed also results from other users. - 'user,reviewer' role, In the 'My Results' page are appeared all results and not only for the current user. - 'administrator' role, The applications are not appeared in the application page - 'reviewer' role, Reviewers cannot submit votes and after few seconds a 'time out' is received. Change-Id: Ia9bc3c4fdcac1b37ac03adff64ff689ca2428c0f Signed-off-by: Panagiotis Karalis <pkaralis@intracom-telecom.com>
Diffstat (limited to '3rd_party/static/testapi-ui/app.js')
-rw-r--r--3rd_party/static/testapi-ui/app.js6
1 files changed, 1 insertions, 5 deletions
diff --git a/3rd_party/static/testapi-ui/app.js b/3rd_party/static/testapi-ui/app.js
index 55603aa..635c0ac 100644
--- a/3rd_party/static/testapi-ui/app.js
+++ b/3rd_party/static/testapi-ui/app.js
@@ -181,11 +181,7 @@
var profile_url = testapiApiUrl + '/profile';
function canReview(user) {
- if (typeof user.role == undefined) {
- return false;
- } else if (user.role.indexOf('administrator') != -1) {
- return true;
- } else if (user.role.indexOf('reviewer') != -1) {
+ if (user.role.indexOf('reviewer') != -1) {
return true;
} else {
return false;