Commit b456c7d2 authored by Moises Sacal's avatar Moises Sacal
Browse files

add user as admin, changed form text

parent 8dcee4dd
......@@ -290,7 +290,7 @@ var Controllers;
return rxjs_1.Observable.of(nb);
}
else {
const addUser = yield LabarchivesService.addUserToNotebook(this.config.key, info['id'], nb['nbid'], supervisor, 'OWNER');
const addUser = yield LabarchivesService.addUserToNotebook(this.config.key, info['id'], nb['nbid'], supervisor, 'ADMINISTRATOR');
sails.log.debug('addUser');
if (addUser) {
const nbu = addUser.notebooks['notebook-user'];
......
......@@ -82,7 +82,7 @@ module.exports = {
name: 'Create',
createButton: 'Create Notebook',
supervisorFailMessage: 'FNCI/Supervisor has not logged in to LabArchives',
createNotebookHelp: 'Creating a notebook with Stash will try yo add your RDMP FNCI/Supervisor as an owner. It will also then add information about your Data Management Plan on it',
createNotebookHelp: 'Creating a notebook with Stash will try yo add your RDMP FNCI/Supervisor to your notebook. It will also then add information about your Data Management Plan on it',
createNotebookHelp2: 'Give your notebook a name that is related to your research',
notebookLabel: 'Notebook Name',
supervisorLabel: 'RDMP FNCI/Supervisor',
......
......@@ -305,7 +305,7 @@ export module Controllers {
if (userEmail.toLowerCase() === supervisor.toLowerCase()) {
return Observable.of(nb);
} else {
const addUser = await LabarchivesService.addUserToNotebook(this.config.key, info['id'], nb['nbid'], supervisor, 'OWNER');
const addUser = await LabarchivesService.addUserToNotebook(this.config.key, info['id'], nb['nbid'], supervisor, 'ADMINISTRATOR');
sails.log.debug('addUser');
if (addUser) {
const nbu = addUser.notebooks['notebook-user'];
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment