| @@ 1291-1294 (lines=4) @@ | ||
| 1288 | ); |
|
| 1289 | //error_log(__METHOD__.__LINE__.array2string(array_keys($actions))); |
|
| 1290 | // 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 |
|
| 1291 | if (!isset($GLOBALS['egw_info']['user']['apps']['infolog'])) |
|
| 1292 | { |
|
| 1293 | unset($actions['infolog']); |
|
| 1294 | } |
|
| 1295 | if (!isset($GLOBALS['egw_info']['user']['apps']['tracker'])) |
|
| 1296 | { |
|
| 1297 | unset($actions['tracker']); |
|
| @@ 1295-1298 (lines=4) @@ | ||
| 1292 | { |
|
| 1293 | unset($actions['infolog']); |
|
| 1294 | } |
|
| 1295 | if (!isset($GLOBALS['egw_info']['user']['apps']['tracker'])) |
|
| 1296 | { |
|
| 1297 | unset($actions['tracker']); |
|
| 1298 | } |
|
| 1299 | if (!isset($GLOBALS['egw_info']['user']['apps']['calendar'])) |
|
| 1300 | { |
|
| 1301 | unset($actions['calendar']); |
|
| @@ 1299-1302 (lines=4) @@ | ||
| 1296 | { |
|
| 1297 | unset($actions['tracker']); |
|
| 1298 | } |
|
| 1299 | if (!isset($GLOBALS['egw_info']['user']['apps']['calendar'])) |
|
| 1300 | { |
|
| 1301 | unset($actions['calendar']); |
|
| 1302 | } |
|
| 1303 | return $actions; |
|
| 1304 | } |
|
| 1305 | ||