diff --git a/CHANGELOG.md b/CHANGELOG.md index ff21551..90c650c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -12,6 +12,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/). - Fix truncated CSV export - Fix injection for `groups_id` and `groups_id_tech` fields - Fix missing `purge` action +- Fix `Model` visibilty criteria - Fix user fields nullability to prevent SQL errors during injection - Remove groups as import link field - Fix `clean` function diff --git a/inc/model.class.php b/inc/model.class.php index 9db21c7..5510829 100644 --- a/inc/model.class.php +++ b/inc/model.class.php @@ -398,7 +398,7 @@ public static function getModels($user_id, $order = "name", $entity = -1, $all = "glpi_plugin_datainjection_models", "entities_id", $entity, - true, + false, ) . ") OR (`is_private` = '" . self::MODEL_PRIVATE . "' AND `users_id` = '$user_id')) ORDER BY `is_private` DESC,