diff --git a/htdocs/core/ajax/loadinplace.php b/htdocs/core/ajax/loadinplace.php index 2d688b7242501ce114b9ab6bb8c56f0070cc5e2f..0b43b1871da372d385ca658e9dad1e4bc5fa5ee5 100644 --- a/htdocs/core/ajax/loadinplace.php +++ b/htdocs/core/ajax/loadinplace.php @@ -62,7 +62,8 @@ if((isset($_GET['field']) && ! empty($_GET['field'])) if ($element == 'fichinter') $element = 'ficheinter'; - if ($user->rights->$element->lire || $user->rights->$element->read) + if ($user->rights->$element->lire || $user->rights->$element->read + || $user->rights->$element->$subelement->lire || $user->rights->$element->$subelement->read) { if ($type == 'select') { diff --git a/htdocs/core/ajax/saveinplace.php b/htdocs/core/ajax/saveinplace.php index 428e5ace5684896f8b04e946577f1a8def40f878..1ac227482a9e2aa0099088a0959b18b9c2ac3f98 100644 --- a/htdocs/core/ajax/saveinplace.php +++ b/htdocs/core/ajax/saveinplace.php @@ -68,7 +68,8 @@ if((isset($_POST['field']) && ! empty($_POST['field'])) if ($element == 'fichinter') $element = 'ficheinter'; - if ($user->rights->$element->creer || $user->rights->$element->write) + if ($user->rights->$element->creer || $user->rights->$element->write + || $user->rights->$element->$subelement->creer || $user->rights->$element->$subelement->write) { // Clean parameters $newvalue = trim($value);