Issue #2844908 by mglaman, bojanz, agoradesign, kscheirer, nedjo: Start using the Entity API permission code