hasPriv("admin") && !$_SESSION['current']->isMaintainer($oComment->iVersionId) && !$_SESSION['current']->isSuperMaintainer($oComment->iAppId)) { util_show_error_page("You don't have sufficient privileges to delete this comment."); } if($_SESSION['current']->getPref("confirm_comment_deletion") != "no" && !isset($aClean['iDeleteIt'])) { apidb_header("Delete Comment"); $mesTitle = "Please state why you are deleting the following comment"; echo "
"; apidb_footer(); } else { $oComment->delete($aClean['sWhy']); redirect(apidb_fullurl("appview.php?iVersionId=".$oComment->iVersionId)); } ?>