bug: Let objectManager delete bug links

This commit is contained in:
Alexander Nicolaysen Sørnes
2007-09-17 20:41:47 +02:00
committed by Chris Morgan
parent 09d96b79bd
commit 74cf6afeb2
2 changed files with 1 additions and 13 deletions

View File

@@ -80,18 +80,6 @@ if (isset($aClean['sSub']))
if(isset($aClean['iVersionId']))
$oVersion = new Version($aClean['iVersionId']);
if(($aClean['sSub'] == 'delete' ) && ($aClean['iBuglinkId']))
{
if(($_SESSION['current']->hasPriv("admin") ||
$_SESSION['current']->isMaintainer($oVersion->iVersionId) ||
$_SESSION['current']->isSuperMaintainer($oVersion->iAppId)))
{
$oBuglink = new Bug($aClean['iBuglinkId']);
$oBuglink->delete();
util_redirect_and_exit($oVersion->objectMakeUrl());
}
}
if(($aClean['sSub'] == 'unqueue' ) && ($aClean['iBuglinkId']))
{
if(($_SESSION['current']->hasPriv("admin") ||