diff --git a/include/comments.php b/include/comments.php index 9ad9134..c67d7c3 100644 --- a/include/comments.php +++ b/include/comments.php @@ -63,7 +63,7 @@ function view_app_comment($ob) echo "\n"; // delete message button, for admins - if (loggedin() && (havepriv("admin") || $_SESSION['current']->is_maintainer($appId,$versionId) )) + if (loggedin() && (havepriv("admin") || $_SESSION['current']->is_maintainer($ob->appId,$ob->versionId) )) { echo "