mirror of
https://github.com/documize/community.git
synced 2025-07-25 16:19:46 +02:00
community/enterprise edition sync
This commit is contained in:
parent
fa0f176613
commit
4f277c8500
2 changed files with 16 additions and 1 deletions
|
@ -67,6 +67,10 @@ export default Router.map(function () {
|
||||||
path: 'setup'
|
path: 'setup'
|
||||||
});
|
});
|
||||||
|
|
||||||
|
this.route('secure', {
|
||||||
|
path: 'secure/:token'
|
||||||
|
});
|
||||||
|
|
||||||
this.route('auth', {
|
this.route('auth', {
|
||||||
path: 'auth'
|
path: 'auth'
|
||||||
}, function () {
|
}, function () {
|
||||||
|
|
|
@ -62,9 +62,20 @@ export default Ember.Service.extend({
|
||||||
return resolve(this);
|
return resolve(this);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (requestedUrl === 'secure') {
|
||||||
|
this.setProperties({
|
||||||
|
title: htmlSafe("Secure document viewing"),
|
||||||
|
allowAnonymousAccess: true,
|
||||||
|
setupMode: true
|
||||||
|
});
|
||||||
|
|
||||||
|
this.get('localStorage').clearAll();
|
||||||
|
|
||||||
|
return resolve(this);
|
||||||
|
}
|
||||||
|
|
||||||
return this.get('ajax').request('public/meta').then((response) => {
|
return this.get('ajax').request('public/meta').then((response) => {
|
||||||
this.setProperties(response);
|
this.setProperties(response);
|
||||||
|
|
||||||
return response;
|
return response;
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue