FIX Can't edit tags of a user.

This commit is contained in:
ldestailleur 2025-09-18 22:13:53 +02:00
parent 134243550b
commit 074e249e48

View file

@ -2857,7 +2857,7 @@ if ($action == 'create' || $action == 'adduserldap') {
if (isModEnabled('category') && $user->hasRight("categorie", "read")) {
print '<tr><td>'.$form->editfieldkey('Categories', 'usercats', '', $object, 0).'</td>';
print '<td>';
if (!$permissiontoedit) {
if ($permissiontoedit) {
print $form->selectCategories(Categorie::TYPE_USER, 'usercats', $object);
} else {
print $form->showCategories($object->id, Categorie::TYPE_USER, 1);