Unknown 7 vuotta sitten
vanhempi
commit
5a9f37dc41
1 muutettua tiedostoa jossa 2 lisäystä ja 2 poistoa
  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");
                     }