From f6a7e6b4e183242916b8e6754601a2d0eed3614f Mon Sep 17 00:00:00 2001 From: vdumas Date: Tue, 12 Sep 2023 18:28:08 +0200 Subject: [PATCH] =?UTF-8?q?N=C2=B03506=20-=20allow=5Ftarget=5Fcreation=20b?= =?UTF-8?q?ased=20on=20UR=5FACTION=5FMODIFY?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/ui.extkeywidget.class.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/application/ui.extkeywidget.class.inc.php b/application/ui.extkeywidget.class.inc.php index 82e53ba80..cd0f01e83 100644 --- a/application/ui.extkeywidget.class.inc.php +++ b/application/ui.extkeywidget.class.inc.php @@ -163,7 +163,7 @@ class UIExtKeyWidget $oPage->add_linked_script('../js/extkeywidget.js'); $oPage->add_linked_script('../js/forms-json-utils.js'); - $bCreate = (!$this->bSearchMode) && (UserRights::IsActionAllowed($this->sTargetClass, UR_ACTION_BULK_MODIFY) && $bAllowTargetCreation); + $bCreate = (!$this->bSearchMode) && (UserRights::IsActionAllowed($this->sTargetClass, UR_ACTION_MODIFY) && $bAllowTargetCreation); $bExtensions = true; $sMessage = Dict::S('UI:Message:EmptyList:UseSearchForm'); $sAttrFieldPrefix = ($this->bSearchMode) ? '' : 'attr_';