diff options
author | grakiss <grakiss.wanglei@huawei.com> | 2017-11-08 07:33:22 +0000 |
---|---|---|
committer | grakiss <grakiss.wanglei@huawei.com> | 2017-11-08 07:33:22 +0000 |
commit | c198d74138a590d8d586e7998d75ebe69fe702ed (patch) | |
tree | fed0a52d4bfcd451927ee408f0059e457a1d6b55 /cvp/3rd_party/static/testapi-ui/components | |
parent | 84d413ec0d980d4d0b80bf77bc35fffb063cf686 (diff) |
[cvp-web] Allow accounts with role 'reviewer' to submit resuts
JIRA: DOVETAIL-549
Accounts within the CVP portal with the role 'reviewer'
cannot submit test results currently.
While reviewers cannot review their own results,
they should be able to submit results.
Many within the Dovetail community will be serving
multiple roles as testers and reviewers.
Change-Id: I762aeec64bb2b207c582aa79e0ad1bd5a635fd19
Signed-off-by: grakiss <grakiss.wanglei@huawei.com>
Diffstat (limited to 'cvp/3rd_party/static/testapi-ui/components')
-rw-r--r-- | cvp/3rd_party/static/testapi-ui/components/results/results.html | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cvp/3rd_party/static/testapi-ui/components/results/results.html b/cvp/3rd_party/static/testapi-ui/components/results/results.html index a09a5338..aab2985f 100644 --- a/cvp/3rd_party/static/testapi-ui/components/results/results.html +++ b/cvp/3rd_party/static/testapi-ui/components/results/results.html @@ -48,8 +48,8 @@ Operation<span class="caret"></span> </a> <ul class="dropdown-menu" uib-dropdown-menu role="menu" aria-labelledby="single-button"> - <li role="menuitem" ng-if="auth.currentUser.role == 'user'" class="menu-item menu-item-type-post_type menu-item-object-page"><a ng-class="{'hide': result.status != 'review'}" ng-click="ctrl.toPrivate(result, 'private')">withdraw submit</a></li> - <li role="menuitem" ng-if="auth.currentUser.role == 'user'" class="menu-item menu-item-type-post_type menu-item-object-page"><a ng-class="{'hide': result.status != 'private'}" ng-click="ctrl.toReview(result, 'review')">submit to review</a></li> + <li role="menuitem" class="menu-item menu-item-type-post_type menu-item-object-page"><a ng-class="{'hide': result.status != 'review'}" ng-click="ctrl.toPrivate(result, 'private')">withdraw submit</a></li> + <li role="menuitem" class="menu-item menu-item-type-post_type menu-item-object-page"><a ng-class="{'hide': result.status != 'private'}" ng-click="ctrl.toReview(result, 'review')">submit to review</a></li> <!-- <li role="menuitem" ng-if="auth.currentUser.role.indexOf('reviewer') != -1" class="menu-item menu-item-type-post_type menu-item-object-page"><a ng-class="{'hide': result.status == 'approved'}" ng-click="ctrl.toggleCheck(result, 'status', 'approve')">approve</a></li> <li role="menuitem" ng-if="auth.currentUser.role.indexOf('reviewer') != -1" class="menu-item menu-item-type-post_type menu-item-object-page"><a ng-class="{'hide': result.status == 'not approved'}" ng-click="ctrl.toggleCheck(result, 'status', 'not approve')">not approve</a></li> |