diff --git a/classes/output/comment.php b/classes/output/comment.php
index 860baabba9a156b6a2e5eee4e0376643da838021..a6f6b3393095a16a5b425cf7e6d7410c993e30f6 100644
--- a/classes/output/comment.php
+++ b/classes/output/comment.php
@@ -1,5 +1,4 @@
 <?php
-
 // This file is part of Moodle - http://moodle.org/
 //
 // Moodle is free software: you can redistribute it and/or modify
diff --git a/model/comment.class.php b/model/comment.class.php
index dbfa17e4affca7a92620b31ea4c41558b35b4e4b..7baa0820adcf7e77eba979030d83bc6021ecfdcb 100644
--- a/model/comment.class.php
+++ b/model/comment.class.php
@@ -606,13 +606,7 @@ class pdfannotator_comment {
                 . "JOIN (SELECT * FROM {pdfannotator_annotations} WHERE pdfannotatorid = :docid) a "
                 . "ON a.id = c.annotationid WHERE isquestion = 1";
         $questions = $DB->get_records_sql($sql, array('docid' => $documentid));
-//        if (!has_capability('mod/pdfannotator:seehiddencomments', $context)) {
-//            foreach ($questions as $question) {
-//                if ($question->ishidden == 1) {
-//                    $question->content = '<em>' . get_string('hiddenComment', 'pdfannotator') . '</em>';
-//                }
-//            }
-//        }
+
         $ret = [];
         foreach ($questions as $question) {
             $ret[$question->page][] = $question;
@@ -630,7 +624,7 @@ class pdfannotator_comment {
         global $DB;
         $ret = [];
         $i = 0;
-//        $displayhidden = has_capability('mod/pdfannotator:seehiddencomments', $context);
+        $displayhidden = has_capability('mod/pdfannotator:seehiddencomments', $context);
         $sql = "SELECT c.*, a.page FROM {pdfannotator_comments} c "
                 . "JOIN {pdfannotator_annotations} a ON a.id = c.annotationid "
                 . "WHERE isquestion = 1 AND c.pdfannotatorid = :docid AND "
@@ -649,9 +643,9 @@ class pdfannotator_comment {
             if ($question->isdeleted == 1) {
                 $question->content = '<em>'.get_string('deletedComment', 'pdfannotator').'</em>';
             }
-//            if ($question->ishidden == 1 && !$displayhidden) {
-//                $question->content = get_string('hiddenComment', 'pdfannotator');
-//            }
+            if ($question->ishidden == 1 && !$displayhidden) {
+                $question->content = get_string('hiddenComment', 'pdfannotator');
+            }
             $ret[$i] = $question;   // Without this array the order by page would get lost, because js sorts by id.
             $i++;
         }