Fixing comments for anonymous user if any comment was deleted
parent
1a9fd4cef4
commit
0a8b5bf7f0
|
@ -276,8 +276,9 @@ HistoryDirective = ($log, $loading, $qqueue, $template, $confirm, $translate, $c
|
||||||
deleteCommentUser: comment.delete_comment_user.name
|
deleteCommentUser: comment.delete_comment_user.name
|
||||||
deleteComment: comment.comment_html
|
deleteComment: comment.comment_html
|
||||||
activityId: comment.id
|
activityId: comment.id
|
||||||
canRestoreComment: (comment.delete_comment_user.pk == $scope.user.id or
|
canRestoreComment: ($scope.user and
|
||||||
$scope.project.my_permissions.indexOf("modify_project") > -1)
|
(comment.delete_comment_user.pk == $scope.user.id or
|
||||||
|
$scope.project.my_permissions.indexOf("modify_project") > -1))
|
||||||
})
|
})
|
||||||
|
|
||||||
html = $compile(html)($scope)
|
html = $compile(html)($scope)
|
||||||
|
|
Loading…
Reference in New Issue