mirror of
https://github.com/documize/community.git
synced 2025-07-24 07:39:43 +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'
|
||||
});
|
||||
|
||||
this.route('secure', {
|
||||
path: 'secure/:token'
|
||||
});
|
||||
|
||||
this.route('auth', {
|
||||
path: 'auth'
|
||||
}, function () {
|
||||
|
|
|
@ -62,9 +62,20 @@ export default Ember.Service.extend({
|
|||
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) => {
|
||||
this.setProperties(response);
|
||||
|
||||
return response;
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue