diff --git a/app/javascript/profile/person_demographics.vue b/app/javascript/profile/person_demographics.vue index 014c83841..187bbc7c6 100644 --- a/app/javascript/profile/person_demographics.vue +++ b/app/javascript/profile/person_demographics.vue @@ -2,13 +2,11 @@
- -
Demographics
+
Demographics
- -
Community memberships
+
Community memberships
@@ -94,6 +92,10 @@ export default { }, communityFields() { return Object.keys(this.communityData); + }, + canEditInfo() { + // TODO use sensitive data permission in the future + return this.currentUserIsAdmin || this.currentUser.id === this.selected.id; } } }; diff --git a/app/javascript/profile/person_details.vue b/app/javascript/profile/person_details.vue index c7ec97469..41f123a08 100644 --- a/app/javascript/profile/person_details.vue +++ b/app/javascript/profile/person_details.vue @@ -66,8 +66,8 @@