Make sure users can access their own definitions

This commit is contained in:
Nathan Gray 2011-05-19 16:11:26 +00:00
parent 0b1e444325
commit 3808f6d5e0

View File

@ -55,7 +55,7 @@ class importexport_definitions_bo {
$GLOBALS['egw']->db->quote('%,'.str_replace('_','\\_',$id) .',%');
}
$sql .= implode(' OR ', $read);
$sql .= ') ';
$sql .= ') OR owner = '.$GLOBALS['egw_info']['user']['account_id'];
$query['col_filter'][] = $sql;
}