summaryrefslogtreecommitdiffstats
path: root/3rd_party/static/testapi-ui/app.js
diff options
context:
space:
mode:
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;