I am pretty sure that a lookup table instance needs to be set in a form in order to use that lookup table in that form, so I believe the answer to the following question is “No” … but I’d like to make sure:
Is there a way to use a lookup table in a menu display condition?
I would like to use something like:
instance('user_roles')/user_roles_list/user_roles/[name=#user/role]/can_see_foo_menu = 1
My fallback is to hardcode the user roles, like …
#user/role = 'admin' or #user/role = 'supervisor' or ...
… but there are many roles, and several menus with display conditions. We would also like to be able to add roles without changing the app, so this is definitely something I’d prefer to avoid.