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

fixed #103 and bumped version

bumped version
fixed #103
This commit is contained in:
Harvey Kandola 2017-07-20 11:37:38 +01:00
parent 763bd1f0e2
commit bc49041359
8 changed files with 623 additions and 623 deletions

View file

@ -28,7 +28,7 @@ export default Ember.Route.extend(AuthenticatedRouteMixin, {
this.get('folderService').setCurrentFolder(folder).then(() => {
this.set('isEditor', this.get('folderService').get('canEditCurrentFolder'));
this.set('isFolderOwner', this.get('session.user.id') === folder.get('userId'));
resolve();
});
});
@ -52,10 +52,11 @@ export default Ember.Route.extend(AuthenticatedRouteMixin, {
actions: {
error(error /*, transition*/ ) {
console.log(error); // eslint-disable-line no-console
if (error) {
this.transitionTo('/not-found');
return false;
}
}
}
}
});