From 4452c7b0100a957728ac7f9d4abde9be65afacab Mon Sep 17 00:00:00 2001 From: Gail Terman Date: Sat, 4 Jun 2022 14:20:53 -0400 Subject: [PATCH 1/2] PLAN-324 disallow editing of sensitive fields - unless you are an admin. in the future, this should be the sensitive data bit. --- .../profile/person_demographics.vue | 40 ++++--------------- app/javascript/profile/person_details.vue | 9 ++++- 2 files changed, 14 insertions(+), 35 deletions(-) diff --git a/app/javascript/profile/person_demographics.vue b/app/javascript/profile/person_demographics.vue index 3334f7087..014c83841 100644 --- a/app/javascript/profile/person_demographics.vue +++ b/app/javascript/profile/person_demographics.vue @@ -2,42 +2,14 @@
-
Demographics
+ +
Demographics
-
-
Community memberships
+ +
Community memberships
-
@@ -87,6 +59,7 @@ import { personModel as model } from "@/store/person.store"; import PersonEditModal from "./person_edit_modal.vue"; import EditButton from '@/components/edit_button'; import DlPerson from './dl_person.vue'; +import personSessionMixin from '@/auth/person_session.mixin'; export default { name: "PersonDemographics", @@ -112,7 +85,8 @@ export default { } }), mixins: [ - modelMixinNoProp + modelMixinNoProp, + personSessionMixin ], computed: { demoFields() { diff --git a/app/javascript/profile/person_details.vue b/app/javascript/profile/person_details.vue index a3e7865ea..c7ec97469 100644 --- a/app/javascript/profile/person_details.vue +++ b/app/javascript/profile/person_details.vue @@ -65,8 +65,11 @@