diff --git a/api/config/index.js.dev b/api/config/index.js.dev index 3e326957..6d35b932 100644 --- a/api/config/index.js.dev +++ b/api/config/index.js.dev @@ -79,7 +79,7 @@ exports.mail = { //node mailer config mailer: { - host: 'mail-relay.iu.edu', //max recipents per email: 30 + host: 'mail-relay.iu.edu', //max recipients per email: 30 secure: true, //port 465 auth: { user: 'mememe', diff --git a/ui/src/assets/consents.js b/ui/src/assets/consents.js index 4b2c93a5..1ac15f71 100644 --- a/ui/src/assets/consents.js +++ b/ui/src/assets/consents.js @@ -29,3 +29,29 @@ Accounts which only serve for advertising will be deleted. Accounts which are up brainlife.io is a publicly funded, community-driven project that is run by individuals at multiple institutions with the goal of advancing research and understanding. Learn more about this at brainlife.io. `; + +exports.brainlife_dua = ` +Data Use Agreement for [Dataset Name] + + +Due to the sensitive nature of the dataset and to protect the confidentiality and privacy of data subjects, data protection pseudonymization (defacing) has been applied. This agreement governs the use of this pseudonymized dataset. A user who accesses this data agrees to be bound by its terms. + +Users agree to the following conditions of use: + +As a user of the dataset, you are the data controller of this dataset at the point of download. This means that you control the purposes and means of processing this specific dataset and therefore you have the responsibility to: + • Protect the privacy and confidentiality of the data subjects at all times + • Never to attempt to re-identify the data subjects by any means or technology + • Never to transfer this data to another user + • Report cases of data breach and incidental findings to the data provider + +Furthermore, by downloading the dataset the controller agrees that the following statement will always accompany any public use of the data (for an analysis, publication, blog, slides presentation or similar): + +Data provided in part by This publication benefitted at least in part from the use of data or technology provided by brainlife.io (NSF BCS 1734853 to Franco Pestilli). These data were managed and processed using brainlife.io (Hayashi, Caron Heinsfeld et al., in review, DOI:10.48550/arXiv.2306.02183) + +Relevant Definitions +Data Controller: A natural or legal person, public authority, agency or other body which, alone or jointly with others, determines the purposes and means of the processing of personal data. +Data Providers: +Data Processing: Any operation or set of operations performed on personal data including data download, storage, analysis, pseudonymization, anonymization, data transfer, etc. +Pseudonymization: The processing of personal data in such a manner that the personal data can no longer be attributed to a specific data subject without the use of additional information, provided that such additional information is kept separately and is subject to technical and organizational measures to ensure that the personal data are not attributed to an identified or identifiable natural person. + +`; \ No newline at end of file diff --git a/ui/src/components/settings/profile.vue b/ui/src/components/settings/profile.vue index d3667053..e59d3cb2 100644 --- a/ui/src/components/settings/profile.vue +++ b/ui/src/components/settings/profile.vue @@ -174,19 +174,7 @@
- -
- - - - - - Agree to Brainlife Acceptable Use Policy
-
-
-
-
- +


@@ -260,6 +248,7 @@ export default { this.email = res.data.email; this.fullname = res.data.fullname; if(res.data.profile) lib.mergeDeep(this.profile, res.data.profile); + if(this.profile.private.aup) this.profile.private.aup = true; const jwt = Vue.config.jwt; if(jwt) { this.debug = {jwt : this.user}; diff --git a/ui/src/modals/aup_agreement.vue b/ui/src/modals/aup_agreement.vue new file mode 100644 index 00000000..40728098 --- /dev/null +++ b/ui/src/modals/aup_agreement.vue @@ -0,0 +1,70 @@ + + + + \ No newline at end of file diff --git a/ui/src/projectedit.vue b/ui/src/projectedit.vue index 9e8c9aeb..85acdf3f 100644 --- a/ui/src/projectedit.vue +++ b/ui/src/projectedit.vue @@ -97,20 +97,26 @@ - Agreements + DATA USE AGREEMENT

List of agreements that user must agree before accessing datasets stored on this project

- +
-

Add Agreement

+ + + + Brainlife Data Use Agreement - Dataset +
@@ -304,6 +310,7 @@ import tageditor from '@/components/tageditor' import datatypes from '@/mixins/datatypes' import { Picker } from 'emoji-mart-vue' +import { brainlife_dua } from "@/assets/consents.js"; const lib = require('@/lib'); @@ -559,7 +566,14 @@ export default { this.submitting = false; }); } - } + }, + + addAgreement(type) { + if(type == 'empty') this.project.agreements.push({agreement: ''}); + if(type == 'brainlife_dua') this.project.agreements.push({ + agreement: brainlife_dua, + }) + }, }, } diff --git a/ui/src/projects.vue b/ui/src/projects.vue index 41236deb..2645527b 100644 --- a/ui/src/projects.vue +++ b/ui/src/projects.vue @@ -44,7 +44,8 @@
-

My Projects

+ +

My Projects

Please create your project by clicking the New Project button below.

@@ -91,6 +92,7 @@