[eluser]Rick Jolly[/eluser]
The protected pages array could accept strings (as is now the case) or arrays. Something like this:
Code:
$checkout = 'user';
$custom_page = array('store_manager','admin');
$this->ezauth->protected_pages = array(
'checkout' => $checkout,
'custom_page' => $custom_page
);
I don't think that the logic in authorize() would be much more complex.
Maybe to simplify the syntax a bit, you could have a method that assigns to the variable "protected_pages". For example:
Code:
// second param could be string or array
$this->ezauth->protect_page('custom_page',array('store_manager','admin'));