Fixes for permission errors introduced by the table permission changes.

This commit is contained in:
Chris Morgan
2007-09-18 22:09:57 -04:00
parent 5c91961d12
commit e82dc74162
2 changed files with 9 additions and 4 deletions

View File

@@ -159,13 +159,13 @@ class ObjectManager
// if there is no class set for a given row use the // if there is no class set for a given row use the
// default one in $sColor // default one in $sColor
if(!$this->oTableRow->oTableRow->GetClass()) if(!$this->oTableRow->GetTableRow()->GetClass())
{ {
$this->oTableRow->oTableRow->SetClass($sColor); $this->oTableRow->GetTableRow()->SetClass($sColor);
} }
// if this row is clickable, make it highlight appropirately // if this row is clickable, make it highlight appropirately
$oTableRowClick = $this->oTableRow->oTableRow->GetTableRowClick(); $oTableRowClick = $this->oTableRow->GetTableRow()->GetTableRowClick();
if($oTableRowClick) if($oTableRowClick)
{ {
$oTableRowHighlight = GetStandardRowHighlight($iCount); $oTableRowHighlight = GetStandardRowHighlight($iCount);
@@ -178,7 +178,7 @@ class ObjectManager
if($oObject->canEdit()) if($oObject->canEdit())
{ {
$shDeleteLink = ""; $shDeleteLink = "";
if($this->oTableRow->bHasDeleteLink) if($this->oTableRow->GetHasDeleteLink())
{ {
$shDeleteLink = ' [&nbsp;<a href="'.$this->makeUrl("delete", $oObject->objectGetId()). $shDeleteLink = ' [&nbsp;<a href="'.$this->makeUrl("delete", $oObject->objectGetId()).
'">delete</a>&nbsp;]'; '">delete</a>&nbsp;]';

View File

@@ -345,6 +345,11 @@ class OMTableRow
{ {
return $this->oTableRow->GetString(); return $this->oTableRow->GetString();
} }
function GetTableRow()
{
return $this->oTableRow;
}
} }
class Table class Table