Fix definition filter to allow admins access to their own private definitions

This commit is contained in:
Nathan Gray 2011-03-14 17:35:01 +00:00
parent ece9ad4047
commit 4b18c05ec3

View File

@ -82,7 +82,7 @@ class importexport_definitions_ui
if($GLOBALS['egw_info']['user']['apps']['admin']) {
// Any public definition
$filter[] = '!owner OR owner IS NULL OR allowed_users IS NOT NULL';
$filter[] = '(!owner OR owner IS NULL OR allowed_users IS NOT NULL OR owner = ' . $GLOBALS['egw_info']['user']['account_id'] . ')';
} else {
// Filter private definitions
$filter['owner'] = $GLOBALS['egw_info']['user']['account_id'];