Remove ownership checks - this belongs in application code, not in a framework.

develop
Sven Slootweg 12 years ago
parent 8b437c6a4b
commit 641a5fe43e

@ -40,7 +40,7 @@ abstract class CPHPDatabaseRecordClass extends CPHPBaseClass
$this->ConstructDataset($this->sId);
}
public function ConstructDataset($uDataSource, $uCommunityId = 0)
public function ConstructDataset($uDataSource)
{
$bind_datasets = true;
@ -116,17 +116,6 @@ abstract class CPHPDatabaseRecordClass extends CPHPBaseClass
{
$this->sFound = false;
}
if(!empty($uCommunityId) && !empty($this->sCommunityId))
{
$sCommunityId = (is_numeric($uCommunityId)) ? $uCommunityId : 0;
if($sCommunityId != $this->sCommunity->sId)
{
$classname = get_class($this);
throw new OwnershipException("{$classname} {$this->sId} does not belong to Community {$sCommunityId}.");
}
}
}
public function BindDataset($type, $dataset)

Loading…
Cancel
Save