Fixed incorrect restriction when site_id=0. bugid:112587