Only show 'create new parent' link for applications

This commit is contained in:
Alexander Nicolaysen Sørnes
2009-07-30 16:06:15 +02:00
parent 6f1de39837
commit 8fbe27e679
2 changed files with 7 additions and 1 deletions

View File

@@ -921,7 +921,8 @@ class ObjectManager
$sClassDisplayName = $oParentOM->GetOptionalSetting('objectGetClassDisplayName', 'parent entry');
echo '<p><a href="'.$this->makeUrl('moveToNewParent', $this->iId)."\">Create and move to a new $sClassDisplayName</a></p>\n";
if($this->GetOptionalSetting('objectAllowMovingToNewParent', false))
echo '<p><a href="'.$this->makeUrl('moveToNewParent', $this->iId)."\">Create and move to a new $sClassDisplayName</a></p>\n";
/* Display some help text */
echo "<p>Move ".$oObject->objectMakeLink()." to the $sClassDisplayName ";