diff --git a/include/comment.php b/include/comment.php index bc6dec3..703cf62 100644 --- a/include/comment.php +++ b/include/comment.php @@ -234,10 +234,9 @@ class Comment { echo "\n"; + $oComment = new comment($oRow->commentId); // delete message button, for admins - if ($_SESSION['current']->hasPriv("admin") - || $_SESSION['current']->isMaintainer($oRow->versionId) - || $_SESSION['current']->isSuperMaintainer($oRow->appId)) + if ($oComment->canEdit()) { $oVersion = new version($oRow->versionId); echo "