| 42 | | foreach($user['contact'] as $key => $value) |
| 43 | | { |
| 44 | | // on a pas ca dans access? dans le doute, on laisse. |
| 45 | | if (!array_key_exists($key, $access['contact'])) |
| 46 | | continue; |
| 47 | | if (access_weight($access['contact'][$key]) < access_weight($weight)) |
| 48 | | { |
| 49 | | // on a pas le droit de l'afficher: on le planque. |
| 50 | | unset($user['contact'][$key]); |
| 51 | | } |
| 52 | | } |
| | 42 | $user['contact'] = filter_table_with_weight($user['contact'], $access['contact'], $weight); |
| | 43 | $user['professionel'] = filter_table_with_weight($user['professionel'], $access['professionel'], $weight); |
| | 44 | $user['general'] = filter_table_with_weight($user['general'], $access['general'], $weight); |