MDL-21097 Correctly check capabilities for frontpage editing mode