Remove the checkAccess function