Added access checks to get context function
Added node status check in get context function