[Suggestion] Provide More Parameters In Fn_Execute_Permission_Condition

fn_execute_permission_condition is currently only passed the $condition array.

To make it a lot more useful, it could be passed the following parameters which are available in all places it is called:

$controller

$mode

$request_method,

$request_variables

These parameters would in turn be passed into the $condition function which would make it much easier to check permissions in the function.

Thanks

Matthew

Those should all be available to you in the Registry::get('runtime') array or via $_SERVER variables. No need to pass them as parameters if they can be referenced from memory.

Those should all be available to you in the Registry::get('runtime') array or via $_SERVER variables. No need to pass them as parameters if they can be referenced from memory.

When the view is parsed to determine which admin menu items should be shown in fn_check_view_permissions, those variables are not available as Registry::get('runtime') will only return the page that you are on, not the page you wish to check.

I guess I don’t underrated what you are trying to do. There is no mode/controller for other than the current page.