mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
ui: fix UserDropdown permPrivChecker (#891)
This commit is contained in:
1 parent
d13b67dfad
commit
8409f7395b
1 file changed
+2
-1
@@ -106,13 +106,14 @@
|
|||||||
{% endif %}
|
{% endif %}
|
||||||
{% if ui.getNodes('UserDropdown').length %}
|
{% if ui.getNodes('UserDropdown').length %}
|
||||||
<li class="menu__seperator"></li>
|
<li class="menu__seperator"></li>
|
||||||
{%- for item in ui.getNodes('UserDropdown') -%}
|
{%- for item in ui.getNodes('UserDropdown') -%} {% if item.checker(handler) %}
|
||||||
<li class="menu__item nojs--hide">
|
<li class="menu__item nojs--hide">
|
||||||
{% set args = (item.args(handler) if typeof(item.args)=='function' else item.args) or {} %}
|
{% set args = (item.args(handler) if typeof(item.args)=='function' else item.args) or {} %}
|
||||||
<a href="{{ url(item.name, args) }}" class="menu__link">
|
<a href="{{ url(item.name, args) }}" class="menu__link">
|
||||||
<span class="icon icon-{{ args.icon }}"></span> {{ _(args.displayName or item.name) }}
|
<span class="icon icon-{{ args.icon }}"></span> {{ _(args.displayName or item.name) }}
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
|
{% endif %}
|
||||||
{%- endfor -%}
|
{%- endfor -%}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
<li class="menu__seperator"></li>
|
<li class="menu__seperator"></li>
|
||||||
|
|||||||
Reference in new issue
Block a user