| @@ 1285-1288 (lines=4) @@ | ||
| 1282 | ); |
|
| 1283 | //error_log(__METHOD__.__LINE__.array2string(array_keys($actions))); |
|
| 1284 | // save as tracker, save as infolog, as this are actions that are either available for all, or not, we do that for all and not via css-class disabling |
|
| 1285 | if (!isset($GLOBALS['egw_info']['user']['apps']['infolog'])) |
|
| 1286 | { |
|
| 1287 | unset($actions['infolog']); |
|
| 1288 | } |
|
| 1289 | if (!isset($GLOBALS['egw_info']['user']['apps']['tracker'])) |
|
| 1290 | { |
|
| 1291 | unset($actions['tracker']); |
|
| @@ 1289-1292 (lines=4) @@ | ||
| 1286 | { |
|
| 1287 | unset($actions['infolog']); |
|
| 1288 | } |
|
| 1289 | if (!isset($GLOBALS['egw_info']['user']['apps']['tracker'])) |
|
| 1290 | { |
|
| 1291 | unset($actions['tracker']); |
|
| 1292 | } |
|
| 1293 | if (!isset($GLOBALS['egw_info']['user']['apps']['calendar'])) |
|
| 1294 | { |
|
| 1295 | unset($actions['calendar']); |
|
| @@ 1293-1296 (lines=4) @@ | ||
| 1290 | { |
|
| 1291 | unset($actions['tracker']); |
|
| 1292 | } |
|
| 1293 | if (!isset($GLOBALS['egw_info']['user']['apps']['calendar'])) |
|
| 1294 | { |
|
| 1295 | unset($actions['calendar']); |
|
| 1296 | } |
|
| 1297 | return $actions; |
|
| 1298 | } |
|
| 1299 | ||