1
0
Fork 0
mirror of https://github.com/documize/community.git synced 2025-07-24 15:49:44 +02:00

Write HTTP methods, database connection limits, product entity

This commit is contained in:
Harvey Kandola 2016-07-24 14:49:40 -07:00
parent 360d3d93e9
commit 7d38102eb6
10 changed files with 870 additions and 588 deletions

View file

@ -151,4 +151,4 @@ export default Ember.Route.extend(NotifierMixin, {
});
}
}
});
});

View file

@ -21,8 +21,8 @@ export default Ember.Route.extend(ApplicationRouteMixin, {
appMeta: service(),
session: service(),
beforeModel() {
return this.get('appMeta').boot().then(data => {
beforeModel(transition) {
return this.get('appMeta').boot(transition.targetName).then(data => {
if (this.get('session.session.authenticator') !== "authenticator:documize" && data.allowAnonymousAccess) {
return this.get('session').authenticate('authenticator:anonymous', data);
}
@ -57,4 +57,4 @@ export default Ember.Route.extend(ApplicationRouteMixin, {
return true;
}
}
});
});

View file

@ -1,11 +1,11 @@
// Copyright 2016 Documize Inc. <legal@documize.com>. All rights reserved.
//
// This software (Documize Community Edition) is licensed under
// This software (Documize Community Edition) is licensed under
// GNU AGPL v3 http://www.gnu.org/licenses/agpl-3.0.en.html
//
// You can operate outside the AGPL restrictions by purchasing
// Documize Enterprise Edition and obtaining a commercial license
// by contacting <sales@documize.com>.
// by contacting <sales@documize.com>.
//
// https://documize.com
@ -34,7 +34,7 @@ export default Ember.Service.extend({
return [this.get('host'), endpoint].join('/');
},
boot() {
boot(/*requestedUrl*/) {
let dbhash;
if (is.not.null(document.head.querySelector("[property=dbhash]"))) {
dbhash = document.head.querySelector("[property=dbhash]").content;
@ -57,4 +57,4 @@ export default Ember.Service.extend({
return response;
});
}
});
});