mirror of
https://github.com/documize/community.git
synced 2025-08-07 22:45:24 +02:00
cosmetics
This commit is contained in:
parent
f397e9406b
commit
51a04efcb6
2 changed files with 5 additions and 5 deletions
|
@ -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;
|
||||
}
|
||||
},
|
||||
});
|
||||
});
|
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue