Added a view helper to check access