Use Node Access instead of custom function

Use node access instead of custom logic.

Will not work without PR #2727