Ver Fonte

Bug fix

Unknown há 7 anos atrás
pai
commit
5a9f37dc41
1 ficheiros alterados com 2 adições e 2 exclusões
  1. 2 2
      canvas/js/canvas.js

+ 2 - 2
canvas/js/canvas.js

@@ -2348,8 +2348,8 @@ $(document).ready(function() {
                         deleteComment(commentId);
                     });
                     
-                    // If the user is a collaborator
-                    if(userIsCollaborator === true) {
+                    // If the user is a collaborator or the owner of the canvas
+                    if(userIsCollaborator === true || canvasOwner === username) {
                         // Show the "Resolve Comments" button
                         $("div#comments-window button#comments-resolve").css("display", "block");
                     }