Project level view permission

This cherry-picks the “view” permission changes from Evernote’s fork, as a follow up to global search work.