Fixes for permission errors introduced by the table permission changes.
This commit is contained in:
@@ -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 = ' [ <a href="'.$this->makeUrl("delete", $oObject->objectGetId()).
|
$shDeleteLink = ' [ <a href="'.$this->makeUrl("delete", $oObject->objectGetId()).
|
||||||
'">delete</a> ]';
|
'">delete</a> ]';
|
||||||
|
|||||||
@@ -345,6 +345,11 @@ class OMTableRow
|
|||||||
{
|
{
|
||||||
return $this->oTableRow->GetString();
|
return $this->oTableRow->GetString();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function GetTableRow()
|
||||||
|
{
|
||||||
|
return $this->oTableRow;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
class Table
|
class Table
|
||||||
|
|||||||
Reference in New Issue
Block a user