Skip to content

Commit 6058d4e

Browse files
authored
Fix entity tag visibilty (#295)
* Fix(Tag): add missing check for entity tag visibility * adapt CHANGELOG
1 parent 88795a2 commit 6058d4e

File tree

3 files changed

+11
-1
lines changed

3 files changed

+11
-1
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file.
55
The format is based on [Keep a Changelog](http://keepachangelog.com/)
66
and this project adheres to [Semantic Versioning](http://semver.org/).
77

8+
## [UNRELEASED]
9+
10+
### Fixed
11+
12+
- Fix missing check for `Entity` tag visibility
13+
814
## [2.12.5] - 2025-09-29
915

1016
### Fixed

ajax/get_entity_tags.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,10 @@
3434
Html::header_nocache();
3535
Session::checkLoginUser();
3636

37+
if (!PluginTagTag::canView()) {
38+
return "";
39+
}
40+
3741
if (!isset($_REQUEST['name'])) {
3842
exit;
3943
}

js/entity.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ var setEntityTag = function() {
4848
return; // consider this return as a continue in a jquery each
4949
}
5050
entity_element.addClass('tags_already_set');
51-
51+
5252
$.ajax({
5353
url: CFG_GLPI.root_doc + '/' + GLPI_PLUGINS_PATH.tag + '/ajax/get_entity_tags.php',
5454
data: {

0 commit comments

Comments
 (0)