Added hasAccess method.