diff --git a/ucms_tree/src/Form/TreeEditForm.php b/ucms_tree/src/Form/TreeEditForm.php
index <HASH>..<HASH> 100644
--- a/ucms_tree/src/Form/TreeEditForm.php
+++ b/ucms_tree/src/Form/TreeEditForm.php
@@ -76,6 +76,18 @@ class TreeEditForm extends FormBase
 
         $form['is_creation'] = ['#type' => 'value', '#value' => $isCreation];
 
+        if ($roles = variable_get('umenu_allowed_roles', [])) {
+            $form['role'] = [
+                '#type'           => 'select',
+                '#title'          => $this->t("Role"),
+                '#options'        => $roles,
+                '#default_value'  => $menu->getRole(),
+                '#empty_option'   => $this->t("None"),
+                '#required'       => true,
+                '#maxlength'      => 255,
+            ];
+        }
+
         $form['title'] = [
             '#type'           => 'textfield',
             '#title'          => $this->t("Title"),
tree: added support for umenu.role property if configured for