I want ask, if it’s possible, that action after click on the picture/icon in the widget will work only for administrator.
I want open a special URL, which is important only for administrator.
Yes. The widget expressions have a user
object which includes the logged-in user’s name and the array of roles assigned to that user. So, you can use a test of that roles array to set an action only if the user is an administrator:
action: =user.roles.includes('administrator') && 'your action choice here'
If you want want different actions for administrators and everyone else then:
action: =user.roles.includes('administrator')?('admin_action'):('user_action')
working, thank you