File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -10,6 +10,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
1010### Fixed
1111
1212- Fixed a bug that prevented the creation of additional field data for objects
13+ - Hide config menu if user does not have read permission
1314
1415## [ 1.23.0] - 2025-11-05
1516
Original file line number Diff line number Diff line change @@ -126,8 +126,10 @@ function plugin_init_fields()
126126 // add link in plugin page
127127 $ PLUGIN_HOOKS ['config_page ' ]['fields ' ] = 'front/container.php ' ;
128128
129- // add entry to configuration menu
130- $ PLUGIN_HOOKS ['menu_toadd ' ]['fields ' ] = ['config ' => 'PluginFieldsMenu ' ];
129+ // add entry to configuration menu (only if user has read access to config)
130+ if (Session::haveRight ('config ' , READ )) {
131+ $ PLUGIN_HOOKS ['menu_toadd ' ]['fields ' ] = ['config ' => 'PluginFieldsMenu ' ];
132+ }
131133
132134 // add tabs to itemtypes
133135 $ itemtypes = array_unique (PluginFieldsContainer::getEntries ());
You can’t perform that action at this time.
0 commit comments