Issue #3471460 by ahmad khader: Fix users having access to the layout builder on entities regardless of whether the layout is enabled
Closes #3471460