Skip to content

Commit 5a1021e

Browse files
committed
Fix(Model): fix model visibility criteria
1 parent 1466c4a commit 5a1021e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

inc/model.class.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -398,7 +398,7 @@ public static function getModels($user_id, $order = "name", $entity = -1, $all =
398398
"glpi_plugin_datainjection_models",
399399
"entities_id",
400400
$entity,
401-
true,
401+
false,
402402
) . ")
403403
OR (`is_private` = '" . self::MODEL_PRIVATE . "' AND `users_id` = '$user_id'))
404404
ORDER BY `is_private` DESC,

0 commit comments

Comments
 (0)