Fix docs to be sync instead of recheckAllPermissions