1
0
Fork 0
mirror of https://github.com/documize/community.git synced 2025-08-08 06:55:28 +02:00

Merge branch 'master' into github-extension

This commit is contained in:
Elliott Stoneham 2016-07-07 19:54:33 +01:00
commit 04901b55bb
4 changed files with 14 additions and 7 deletions

View file

@ -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) {
if (this.get('session.session.authenticator') !== "authenticator:documize" && data.allowAnonymousAccess) {
return this.get('session').authenticate('authenticator:anonymous', data);
}
return;
});
},

View file

@ -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;

7
jsconfig.json Normal file
View file

@ -0,0 +1,7 @@
{
"compilerOptions": {
"target": "es6",
"experimentalDecorators": true
},
"exclude": ["node_modules", "bower_components", "tmp", "vendor", ".git", "dist"]
}