Add function alternative for module authorization policy
When creating custom module UIs, we are given an authorization policy by Siteglide to check the auth parameter and decide whether the request is a secure request from Admin.
However, when using this as an authorization policy, it's difficult to combine with other logic, e.g. grant access if request is from Admin OR logged into a front end secure zone.
Please can we be given access to a Liquid function which runs the same logic and returns a boolean? This would be a useful alternative in some cases and would increase flexibility.
Log in to comment and vote
Comments1
Jan 19, 2023
This is available in System Files v2.8.1.9 -> https://help.siteglide.com/en/article/module-system-files-changelog-dl9vyo/?bust=1674110456903#2-2819-19th-january-2023
Docs -> https://developers.siteglide.com/example-data-and-ui-module#:~:text=You%20can%20also%20control%20access%20to%20certain%20areas%20of%20a%20page%20with%20the%20module_is_in_admin%20function%3A