From 51a04efcb64aec8ac5f8fef8f2d05fca145bbc26 Mon Sep 17 00:00:00 2001 From: Harvey Kandola Date: Thu, 7 Jul 2016 10:34:31 -0700 Subject: [PATCH 1/3] cosmetics --- app/app/routes/application.js | 4 +++- documize/database/scripts/autobuild/db_00000.sql | 6 ++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/app/app/routes/application.js b/app/app/routes/application.js index 3d2c8398..5c021732 100644 --- a/app/app/routes/application.js +++ b/app/app/routes/application.js @@ -20,11 +20,13 @@ const { export default Ember.Route.extend(ApplicationRouteMixin, { appMeta: service(), session: service(), + beforeModel() { return this.get('appMeta').boot().then(data => { if (data.allowAnonymousAccess) { return this.get('session').authenticate('authenticator:anonymous', data); } + return; }); }, @@ -55,4 +57,4 @@ export default Ember.Route.extend(ApplicationRouteMixin, { return true; } }, -}); +}); \ No newline at end of file diff --git a/documize/database/scripts/autobuild/db_00000.sql b/documize/database/scripts/autobuild/db_00000.sql index 710a3ecd..60568992 100644 --- a/documize/database/scripts/autobuild/db_00000.sql +++ b/documize/database/scripts/autobuild/db_00000.sql @@ -276,7 +276,5 @@ CREATE TABLE IF NOT EXISTS `userconfig` ( `key` CHAR(225) NOT NULL, `config` JSON, UNIQUE INDEX `idx_userconfig_orguserkey` (`orgid`, `userid`, `key` ASC) ) - DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci; - --- TODO insert userid into pagemeta table --- ALTER TABLE `pagemeta` ADD `userid` CHAR(16) NOT NULL COLLATE utf8_bin AFTER `orgid`; +DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci +ENGINE = InnoDB; From 96bd8e6add24b1a17de121f3417b535cb446c889 Mon Sep 17 00:00:00 2001 From: Harvey Kandola Date: Thu, 7 Jul 2016 11:15:45 -0700 Subject: [PATCH 2/3] session check fix --- app/app/routes/application.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/app/routes/application.js b/app/app/routes/application.js index 5c021732..ea955a81 100644 --- a/app/app/routes/application.js +++ b/app/app/routes/application.js @@ -23,7 +23,7 @@ export default Ember.Route.extend(ApplicationRouteMixin, { beforeModel() { return this.get('appMeta').boot().then(data => { - if (data.allowAnonymousAccess) { + if (this.get('session.session.authenticator') !== "authenticator:documize" && data.allowAnonymousAccess) { return this.get('session').authenticate('authenticator:anonymous', data); } From 6cf236f8b3b53ea00550777c070d5785763893ac Mon Sep 17 00:00:00 2001 From: Harvey Kandola Date: Thu, 7 Jul 2016 11:42:53 -0700 Subject: [PATCH 3/3] visual studio code IDE ember-cli extension --- .vscodeignore | 2 +- jsconfig.json | 7 +++++++ 2 files changed, 8 insertions(+), 1 deletion(-) create mode 100644 jsconfig.json diff --git a/.vscodeignore b/.vscodeignore index 5f5fbfe7..1f52bda3 100644 --- a/.vscodeignore +++ b/.vscodeignore @@ -7,4 +7,4 @@ bower_components/** .sass-cache/** connect.lock/** coverage/*/** -libpeerconnection.log \ No newline at end of file +libpeerconnection.log diff --git a/jsconfig.json b/jsconfig.json new file mode 100644 index 00000000..f2ea2998 --- /dev/null +++ b/jsconfig.json @@ -0,0 +1,7 @@ +{ + "compilerOptions": { + "target": "es6", + "experimentalDecorators": true + }, + "exclude": ["node_modules", "bower_components", "tmp", "vendor", ".git", "dist"] +} \ No newline at end of file