Skip to content

Commit

Permalink
fix(projects): ensure that we don't break if no one is logged in
Browse files Browse the repository at this point in the history
  • Loading branch information
petebacondarwin committed Oct 23, 2013
1 parent 91b3d13 commit 481509d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion client/src/app/projects/projects.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ angular.module('projects', ['resources.projects', 'productbacklog', 'sprints', '
};

$scope.getMyRoles = function(project) {
return project.getRoles(security.currentUser.id);
if ( security.currentUser ) {
return project.getRoles(security.currentUser.id);
}
};
}]);

0 comments on commit 481509d

Please sign in to comment.