Game creators can prevent people accessing specific compendiums if they want, in which case neither the GM nor anyone who happens to own them can access them in the game. Can be practical like in an official Adventure League game, where the GM can disable all third-party sourcebooks so nobody looks at that stuff even by mistake, such as accidentally picking a spell from Kobold Press' Deep Magic book, if all content besides WotC is forbidden.