arguments of custom functions
Custom function doc expresses that custom functions are ran with the current LL::NG portal object as first argument.
This is wrong : first argument is the current URL :
- absolute URL if it is ran by handler (e.g. "/edit/index.php")
- portal's full URL if custom function is ran by portal (e.g. "http://auth.example.com/")
By the way, if access control relies on a custom function using that URL, result of the function will differ when ran by handler or by the menu. So, one can't use such a function to build apps menu with automatic display mode.
And finally, it would be nice to provide a way to get the current LL::NG Portal / Handler object. Does it exists ?