Add objectManager support to the note class

This commit is contained in:
Chris Morgan
2007-07-30 00:27:37 +00:00
committed by WineHQ
parent 3c66a95f3f
commit a923d0ff2f
4 changed files with 109 additions and 37 deletions

View File

@@ -15,7 +15,7 @@ $oNote = new Note($aClean['iNoteId']);
$oVersion = new version($oNote->iVersionId);
/* Check for privs */
if(!$_SESSION['current']->hasPriv("admin") && !$_SESSION['current']->isMaintainer($oNote->iVersionId) && !$_SESSION['current']->isSuperMaintainer($oNote->iAppId))
if(!$oNote->canEdit())
util_show_error_page_and_exit("Insufficient Privileges!");
if(!empty($aClean['sSub']))
@@ -40,7 +40,7 @@ if(!empty($aClean['sSub']))
if($aClean['sPreview'])
{
$oNote->GetOutputEditorValues($aClean); /* retrieve the updated values */
$oNote->show(true);
$oNote->display(true);
}
echo "<form method=post action='editAppNote.php'>\n";