From: Panagiotis Karalis Date: Thu, 11 Apr 2019 14:33:09 +0000 (+0300) Subject: Update the behavior of roles for OVP/ONAP portals X-Git-Tag: ovp-3.0.1~12 X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=commitdiff_plain;h=6ade07b42e9ef39dafda4504bc61eb4661b10cde;p=dovetail-webportal.git Update the behavior of roles for OVP/ONAP portals The behavior of portals' roles are updated according to CVC decisions. The behavior will be: * no roles - the person can upload results and share results to other users, but can not submit an application/results for review * "user" role - the person can submit the application/results fore review. To have this role, the person MUST have signed the participation agreement through docusign. * "reviewer" role - the person can see applications / results submitted to review, and can vote (+1 / -1) on those results as part of the review process. Votes are recorded. * "admin" role - the person can approve applications for public listing, etc. Final gatekeeper for the website, etc. Responsible to ensure processes are followed, etc. Change-Id: Ieca55725378c85f544eeea4390046bae456ee1a3 Signed-off-by: Panagiotis Karalis --- diff --git a/3rd_party/static/onap-ui/components/results/results.html b/3rd_party/static/onap-ui/components/results/results.html index ab2e999..2206029 100644 --- a/3rd_party/static/onap-ui/components/results/results.html +++ b/3rd_party/static/onap-ui/components/results/results.html @@ -1,8 +1,7 @@

{{ctrl.pageHeader}}

{{ctrl.pageParagraph}}

-
+

Upload Results @@ -82,7 +81,8 @@ withdraw submit - -
  • +
  • My Results
  • diff --git a/3rd_party/static/testapi-ui/components/results/results.html b/3rd_party/static/testapi-ui/components/results/results.html index 30bcd94..b55be34 100644 --- a/3rd_party/static/testapi-ui/components/results/results.html +++ b/3rd_party/static/testapi-ui/components/results/results.html @@ -1,8 +1,7 @@

    {{ctrl.pageHeader}}

    {{ctrl.pageParagraph}}

    - +

    Upload Results @@ -82,7 +81,8 @@ withdraw submit

  • - -
  • +
  • My Results
  • diff --git a/opnfv_testapi/ui/auth/constants.py b/opnfv_testapi/ui/auth/constants.py index 44ccb46..3cdfe09 100644 --- a/opnfv_testapi/ui/auth/constants.py +++ b/opnfv_testapi/ui/auth/constants.py @@ -1,6 +1,6 @@ OPENID = 'openid' ROLE = 'role' -DEFAULT_ROLE = 'user' +DEFAULT_ROLE = '' # OpenID parameters OPENID_MODE = 'openid.mode'