Send the user to projects if there are none

This commit is contained in:
Vincent Fiduccia 2015-05-01 15:30:55 -07:00
parent 75d58dd79d
commit 709d1aa735
1 changed files with 1 additions and 8 deletions

View File

@ -111,15 +111,8 @@ export default Ember.Route.extend(AuthenticatedRouteMixin, {
function fail() { function fail() {
// Then cry // Then cry
select(null); select(null);
if ( self.get('app.authenticationEnabled') && !self.get('app.isAuthenticationAdmin') )
{
self.send('logout');
}
else
{
self.transitionTo('projects'); self.transitionTo('projects');
} }
}
}, },
activeProjectFromId: function(projectId) { activeProjectFromId: function(projectId) {