10-19-2017, 10:42 AM
I needed nested permissions so that I could create a parent/child relationship between permission groups. Once I did this, I realized that I had broken the users/helpers/us_helpers.php/securePage() routine. So, as I studied your code, I realized that I could easily override this function by adding my securePage() function to usersc/includes/custom_functions.php and wrapping the function users/helpers/us_helpers.php/securePage() in an if(!function_exists('securePage')) if block.
If you wrapped all of the functions (which I have done in my personal copy) in users/helpers/us_helpers.php with an if function_exists if block, this would easily allow developers to override your helper functions as needed and not have to worry about upgrading the base code in the future.
My two cents,
Gandoff.
If you wrapped all of the functions (which I have done in my personal copy) in users/helpers/us_helpers.php with an if function_exists if block, this would easily allow developers to override your helper functions as needed and not have to worry about upgrading the base code in the future.
My two cents,
Gandoff.