bugfix
This commit is contained in:
parent
d38368b3ac
commit
20c35fc367
16
wwwroot/usermenu.ui
Normal file
16
wwwroot/usermenu.ui
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
{% set roles = get_user_roles(get_user()) %}
|
||||||
|
{
|
||||||
|
"widgettype":"Menu",
|
||||||
|
"options":{
|
||||||
|
"items":[
|
||||||
|
{% if 'customer.* in roles %}
|
||||||
|
{
|
||||||
|
"name":"myaccount",
|
||||||
|
"label":"我的帐务",
|
||||||
|
"icon":"{{entire_url('/imgs/account.svg')}}",
|
||||||
|
"url":"{{entire_url('myaccount.ui')}}"
|
||||||
|
}
|
||||||
|
{% endif %}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
Loading…
x
Reference in New Issue
Block a user