Fixed permission where statement segment