readd applyAccessRestrictions hook
make applyAccessRestrictions public static