How to check project browse permission in Jira Expression for Forge displayConditions?

Hi everyone,

I’ve built a custom field using a Forge app.

My goal is to show this field on the issue screen only if the project’s “Browse Projects” permission is set to Anyone on the web (i.e., the project is publicly visible).

I tried using the displayConditions property with a Jira Expression, but I couldn’t figure out how to retrieve the current project’s browse permissions within the expression.

Has anyone successfully written an expression (or used another approach) to detect if a project is public in this context?

Any help or example expression would be greatly appreciated!

Thanks,
Suresh