Issue 5032: add code check privilege.