Simplified # of foreach() loops in _hasAccess() function
Added access check for the page (only checked if the user had access to the sequence, not both)