From 819f4456e4b11840656eccb307009528dce7bdfd Mon Sep 17 00:00:00 2001 From: Rom1-B <8530352+Rom1-B@users.noreply.github.com> Date: Tue, 15 Sep 2026 08:46:32 +0200 Subject: [PATCH] Fix: skip loading entity tag script without read right --- CHANGELOG.md | 6 ++++++ setup.php | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 4845d03..b99f2ac 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](http://keepachangelog.com/) and this project adheres to [Semantic Versioning](http://semver.org/). +## [Unreleased] + +### Fixed + +- Avoid loading the entity tag script for profiles without the tag read right + ## [2.14.7] - 2026-08-11 ### Fixed diff --git a/setup.php b/setup.php index fac6c7b..c811c97 100644 --- a/setup.php +++ b/setup.php @@ -157,7 +157,7 @@ function plugin_init_tag() $PLUGIN_HOOKS[Hooks::ADD_JAVASCRIPT]['tag'][] = 'js/common.js'; $PLUGIN_HOOKS[Hooks::ADD_JAVASCRIPT]['tag'][] = 'js/kanban.js'; $PLUGIN_HOOKS[Hooks::ADD_CSS]['tag'][] = 'css/tag.css'; - if (Session::isMultiEntitiesMode()) { + if (Session::isMultiEntitiesMode() && Session::haveRight(PluginTagTag::$rightname, READ)) { $PLUGIN_HOOKS[Hooks::ADD_JAVASCRIPT]['tag'][] = 'js/entity.js'; }