- people can tell why they delete comments again

This commit is contained in:
Jonathan Ernst
2005-03-12 17:13:08 +00:00
committed by WineHQ
parent cd54d6d02b
commit 12a7858235
3 changed files with 54 additions and 16 deletions

View File

@@ -26,19 +26,6 @@ if($_REQUEST['what'])
{
switch($_REQUEST['what'])
{
case "comment":
$oComment = new Comment($_REQUEST['commentId']);
if( !$_SESSION['current']->isMaintainer($oComment->iVersionId)
&& !$_SESSION['current']->isSuperMaintainer($oComment->iAppId)
&& !$_SESSION['current']->hasPriv("admin") )
{
errorpage();
} else
{
$oComment->delete();
redirect(BASE."appview.php?versionId=".$oComment->iVersionId);
}
break;
case "category":
// delete category and the apps in it
$oCategory = new Category($_REQUEST['catId']);