Skip to content

Commit a541895

Browse files
stonebuzzRom1-B
andauthored
Fix model visibility (#550)
* Fix(Model): fix model visibility criteria * gadapt changelog --------- Co-authored-by: Romain B. <[email protected]>
1 parent 4358937 commit a541895

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
1212
- Fix truncated CSV export
1313
- Fix injection for `groups_id` and `groups_id_tech` fields
1414
- Fix missing `purge` action
15+
- Fix `Model` visibilty criteria
1516
- Fix user fields nullability to prevent SQL errors during injection
1617
- Remove groups as import link field
1718
- Fix `clean` function

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)