Fixing comments for anonymous user if any comment was deleted

stable
Alejandro Alonso 2015-06-18 11:01:29 +02:00
parent 1a9fd4cef4
commit 0a8b5bf7f0
1 changed files with 3 additions and 2 deletions

View File

@ -276,8 +276,9 @@ HistoryDirective = ($log, $loading, $qqueue, $template, $confirm, $translate, $c
deleteCommentUser: comment.delete_comment_user.name
deleteComment: comment.comment_html
activityId: comment.id
canRestoreComment: (comment.delete_comment_user.pk == $scope.user.id or
$scope.project.my_permissions.indexOf("modify_project") > -1)
canRestoreComment: ($scope.user and
(comment.delete_comment_user.pk == $scope.user.id or
$scope.project.my_permissions.indexOf("modify_project") > -1))
})
html = $compile(html)($scope)