From 098fb16b7f656baf95bd50fd4ea7cc13bcfa3311 Mon Sep 17 00:00:00 2001 From: Catherine Diep Date: Wed, 30 Nov 2016 15:42:16 -0800 Subject: [PATCH] Only Foundation admins can update the 'name' fields of official vendors Once a vendor is registered and approved by the Foundation to become an official vendor, only Foundation admins can make change to its vendor name field. This is to ensure that the Foundation will be aware of any vendor identity (name) change. Change-Id: Ia761707457091ce39fd1281ab5010e0456f779cc --- .../vendors/partials/vendorEditModal.html | 3 ++- .../app/components/vendors/vendorController.js | 13 +++++++++---- refstack-ui/tests/unit/ControllerSpec.js | 15 +++++++++++---- refstack/api/controllers/vendors.py | 12 ++++++++---- refstack/db/sqlalchemy/api.py | 1 + 5 files changed, 31 insertions(+), 13 deletions(-) diff --git a/refstack-ui/app/components/vendors/partials/vendorEditModal.html b/refstack-ui/app/components/vendors/partials/vendorEditModal.html index 10ca0df4..23eded96 100644 --- a/refstack-ui/app/components/vendors/partials/vendorEditModal.html +++ b/refstack-ui/app/components/vendors/partials/vendorEditModal.html @@ -7,7 +7,8 @@