Fix improper zone permissions check