mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-24 23:58:54 +01:00
Fix definition filter to allow admins access to their own private definitions
This commit is contained in:
parent
ece9ad4047
commit
4b18c05ec3
@ -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'];
|
||||
|
Loading…
Reference in New Issue
Block a user