The Sabah Immigration Department decision preventing PKR vice-president and Lembah Pantai parliamentarian Nurul Izzah Anwar from entering Sabah on Thursday was based on the law.