diff --git a/include/comments.php b/include/comments.php index 4c9a503..9ad9134 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(havepriv("admin") || $_SESSION['current']->is_maintainer($ob->appId, $ob->versionId)) + if (loggedin() && (havepriv("admin") || $_SESSION['current']->is_maintainer($appId,$versionId) )) { echo "