Refactor snippets finder & dont return internal snippets for external users See merge request !2094
Some changes in EE for the auditor user feature need to be backported to CE to avoid merge conflicts. This commit encapsulates all these backports.