add reseller.* role support alongside owner.*

This commit is contained in:
yumoqing 2026-06-01 15:28:36 +08:00
parent 69264b6ec6
commit 66f588cd80

View File

@ -61,7 +61,7 @@
} }
] ]
} }
{% if 'owner.*' in roles %} {% if 'owner.*' in roles or 'reseller.*' in roles %}
,{ ,{
"widgettype": "ResponsableBox", "widgettype": "ResponsableBox",
"options": { "options": {
@ -556,7 +556,7 @@
] ]
} }
{% endif %} {% endif %}
{% if 'owner.*' not in roles and 'customer.*' in roles %} {% if 'owner.*' not in roles and 'reseller.*' not in roles and 'customer.*' in roles %}
,{ ,{
"widgettype": "VBox", "widgettype": "VBox",
"options": { "options": {
@ -634,7 +634,7 @@
] ]
} }
{% endif %} {% endif %}
{% if 'owner.*' in roles %} {% if 'owner.*' in roles or 'reseller.*' in roles %}
,{ ,{
"widgettype": "VBox", "widgettype": "VBox",
"options": { "options": {