Check permissions mechanism reworked to allow specifying permission checks already in menu structure.