ECMS-5178 Check the case when user select any as shared query permission