In GLPI, objects ending with x (e.g. PAX) automatically have their table suffixed with es.
cf DbUtils::getPlural()
In GenericObject, the rightname computation follows part of this logic
But the case of the object ending with x is missing.
An object PluginGenericObjectPax have a table like plugin_genericobject_paxes (OK) but rightname is compute as plugin_genericobject_paxs (NOK)
for classic use, with only the Genericobject plugin, rights management is OK
But when plugin fields create a container (from template) for PluginGenericObjectPax, bad rightname is used (plugin_genericobject_paxs)
And when datainjection plugin have to handle fields (from fields plugin) , plugin refuse to display related model because current user have no right (on plugin_genericobject_paxes but have on plugin_genericobject_paxs)
In GLPI, objects ending with
x
(e.g.PAX
) automatically have their table suffixed withes
.cf
DbUtils::getPlural()
In
GenericObject
, therightname
computation follows part of this logic But the case of the object ending withx
is missing.An object
PluginGenericObjectPax
have a table likeplugin_genericobject_paxes
(OK) butrightname
is compute asplugin_genericobject_paxs
(NOK)for classic use, with only the
Genericobject
plugin, rights management is OKBut when plugin
fields
create a container (from template) forPluginGenericObjectPax
, badrightname
is used (plugin_genericobject_paxs
)And when
datainjection
plugin have to handle fields (fromfields
plugin) , plugin refuse to display related model because current user have no right (onplugin_genericobject_paxes
but have onplugin_genericobject_paxs
)