diff --git a/client/src/app/projects/projects.js b/client/src/app/projects/projects.js index dce44383..a4cfad88 100644 --- a/client/src/app/projects/projects.js +++ b/client/src/app/projects/projects.js @@ -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); + } }; }]);