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

cosmetics

This commit is contained in:
Harvey Kandola 2016-07-07 10:34:31 -07:00
parent f397e9406b
commit 51a04efcb6
2 changed files with 5 additions and 5 deletions

View file

@ -20,11 +20,13 @@ const {
export default Ember.Route.extend(ApplicationRouteMixin, { export default Ember.Route.extend(ApplicationRouteMixin, {
appMeta: service(), appMeta: service(),
session: service(), session: service(),
beforeModel() { beforeModel() {
return this.get('appMeta').boot().then(data => { return this.get('appMeta').boot().then(data => {
if (data.allowAnonymousAccess) { if (data.allowAnonymousAccess) {
return this.get('session').authenticate('authenticator:anonymous', data); return this.get('session').authenticate('authenticator:anonymous', data);
} }
return; return;
}); });
}, },
@ -55,4 +57,4 @@ export default Ember.Route.extend(ApplicationRouteMixin, {
return true; return true;
} }
}, },
}); });

View file

@ -276,7 +276,5 @@ CREATE TABLE IF NOT EXISTS `userconfig` (
`key` CHAR(225) NOT NULL, `key` CHAR(225) NOT NULL,
`config` JSON, `config` JSON,
UNIQUE INDEX `idx_userconfig_orguserkey` (`orgid`, `userid`, `key` ASC) ) UNIQUE INDEX `idx_userconfig_orguserkey` (`orgid`, `userid`, `key` ASC) )
DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci; DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci
ENGINE = InnoDB;
-- TODO insert userid into pagemeta table
-- ALTER TABLE `pagemeta` ADD `userid` CHAR(16) NOT NULL COLLATE utf8_bin AFTER `orgid`;