public function getRowDefaults()
{
if (empty($this->RowDefaults)) {
$DefaultRow = $this->SQL->select('*')->from('Permission')->where('RoleID', 0)->where('JunctionTable is null')->orderBy('RoleID')->limit(1)->get()->firstRow(DATASET_TYPE_ARRAY);
if (!$DefaultRow) {
throw new Exception(t('No default permission row.'));
}
$this->_MergeDisabledPermissions($DefaultRow);
unset($DefaultRow['PermissionID'], $DefaultRow['RoleID'], $DefaultRow['JunctionTable'], $DefaultRow['JunctionColumn'], $DefaultRow['JunctionID']);
$this->RowDefaults = $this->StripPermissions($DefaultRow, $DefaultRow);
}
return $this->RowDefaults;
}