ikucheriavenko
3/20/2017 - 2:51 PM

Roles https://gist.github.com/rande/985705

sonata_admin:
    access_control:
        - { path: ^/admin/sonata/media/media/list$, roles: [ROLE_SONATA_MEDIA_ADMIN_MEDIA_LIST], methods: null }
        - { path: ^/admin/sonata/media/media/create$, roles: [ROLE_SONATA_MEDIA_ADMIN_MEDIA_CREATE], methods: null }
        - { path: ^/admin/sonata/media/media/update$, roles: [ROLE_SONATA_MEDIA_ADMIN_MEDIA_UPDATE], methods: null }
        - { path: ^/admin/sonata/media/media/batch$, roles: [ROLE_SONATA_MEDIA_ADMIN_MEDIA_BATCH], methods: null }
        - { path: ^/admin/sonata/media/media/(?P[^/]+?)/edit$, roles: [ROLE_SONATA_MEDIA_ADMIN_MEDIA_EDIT], methods: null }
        - { path: ^/admin/sonata/media/media/(?P[^/]+?)/delete$, roles: [ROLE_SONATA_MEDIA_ADMIN_MEDIA_DELETE], methods: null }
        - { path: ^/admin/sonata/media/media/(?P[^/]+?)/view$, roles: [ROLE_SONATA_MEDIA_ADMIN_MEDIA_VIEW], methods: null }
        - { path: ^/admin/sonata/media/gallery/list$, roles: [ROLE_SONATA_MEDIA_ADMIN_GALLERY_LIST], methods: null }
        - { path: ^/admin/sonata/media/gallery/create$, roles: [ROLE_SONATA_MEDIA_ADMIN_GALLERY_CREATE], methods: null }
        - { path: ^/admin/sonata/media/gallery/update$, roles: [ROLE_SONATA_MEDIA_ADMIN_GALLERY_UPDATE], methods: null }
        - { path: ^/admin/sonata/media/gallery/batch$, roles: [ROLE_SONATA_MEDIA_ADMIN_GALLERY_BATCH], methods: null }
        - { path: ^/admin/sonata/media/gallery/(?P[^/]+?)/edit$, roles: [ROLE_SONATA_MEDIA_ADMIN_GALLERY_EDIT], methods: null }
        - { path: ^/admin/sonata/media/gallery/(?P[^/]+?)/delete$, roles: [ROLE_SONATA_MEDIA_ADMIN_GALLERY_DELETE], methods: null }
        - { path: ^/admin/sonata/media/galleryhasmedia/list$, roles: [ROLE_SONATA_MEDIA_ADMIN_GALLERY_HAS_MEDIA_LIST], methods: null }
        - { path: ^/admin/sonata/media/galleryhasmedia/create$, roles: [ROLE_SONATA_MEDIA_ADMIN_GALLERY_HAS_MEDIA_CREATE], methods: null }
        - { path: ^/admin/sonata/media/galleryhasmedia/update$, roles: [ROLE_SONATA_MEDIA_ADMIN_GALLERY_HAS_MEDIA_UPDATE], methods: null }
        - { path: ^/admin/sonata/media/galleryhasmedia/batch$, roles: [ROLE_SONATA_MEDIA_ADMIN_GALLERY_HAS_MEDIA_BATCH], methods: null }
        - { path: ^/admin/sonata/media/galleryhasmedia/(?P[^/]+?)/edit$, roles: [ROLE_SONATA_MEDIA_ADMIN_GALLERY_HAS_MEDIA_EDIT], methods: null }
        - { path: ^/admin/sonata/media/galleryhasmedia/(?P[^/]+?)/delete$, roles: [ROLE_SONATA_MEDIA_ADMIN_GALLERY_HAS_MEDIA_DELETE], methods: null }
        - { path: ^/admin/sonata/page/page/list$, roles: [ROLE_SONATA_PAGE_ADMIN_PAGE_LIST], methods: null }
        - { path: ^/admin/sonata/page/page/create$, roles: [ROLE_SONATA_PAGE_ADMIN_PAGE_CREATE], methods: null }
        - { path: ^/admin/sonata/page/page/update$, roles: [ROLE_SONATA_PAGE_ADMIN_PAGE_UPDATE], methods: null }
        - { path: ^/admin/sonata/page/page/batch$, roles: [ROLE_SONATA_PAGE_ADMIN_PAGE_BATCH], methods: null }
        - { path: ^/admin/sonata/page/page/(?P[^/]+?)/edit$, roles: [ROLE_SONATA_PAGE_ADMIN_PAGE_EDIT], methods: null }
        - { path: ^/admin/sonata/page/page/(?P[^/]+?)/delete$, roles: [ROLE_SONATA_PAGE_ADMIN_PAGE_DELETE], methods: null }
        - { path: ^/admin/sonata/page/page/(?P[^/]+?)/block/list$, roles: [ROLE_SONATA_PAGE_ADMIN_PAGE_SONATA_PAGE_ADMIN_BLOCK_LIST], methods: null }
        - { path: ^/admin/sonata/page/page/(?P[^/]+?)/block/create$, roles: [ROLE_SONATA_PAGE_ADMIN_PAGE_SONATA_PAGE_ADMIN_BLOCK_CREATE], methods: null }
        - { path: ^/admin/sonata/page/page/(?P[^/]+?)/block/update$, roles: [ROLE_SONATA_PAGE_ADMIN_PAGE_SONATA_PAGE_ADMIN_BLOCK_UPDATE], methods: null }
        - { path: ^/admin/sonata/page/page/(?P[^/]+?)/block/batch$, roles: [ROLE_SONATA_PAGE_ADMIN_PAGE_SONATA_PAGE_ADMIN_BLOCK_BATCH], methods: null }
        - { path: ^/admin/sonata/page/page/(?P[^/]+?)/block/(?P[^/]+?)/edit$, roles: [ROLE_SONATA_PAGE_ADMIN_PAGE_SONATA_PAGE_ADMIN_BLOCK_EDIT], methods: null }
        - { path: ^/admin/sonata/page/page/(?P[^/]+?)/block/(?P[^/]+?)/delete$, roles: [ROLE_SONATA_PAGE_ADMIN_PAGE_SONATA_PAGE_ADMIN_BLOCK_DELETE], methods: null }
        - { path: ^/admin/sonata/page/page/(?P[^/]+?)/block/save\-position$, roles: [ROLE_SONATA_PAGE_ADMIN_PAGE_SONATA_PAGE_ADMIN_BLOCK_SAVEPOSITION], methods: null }
        - { path: ^/admin/sonata/page/page/(?P[^/]+?)/block/(?P[^/]+?)/view$, roles: [ROLE_SONATA_PAGE_ADMIN_PAGE_SONATA_PAGE_ADMIN_BLOCK_VIEW], methods: null }
        - { path: ^/admin/sonata/page/block/list$, roles: [ROLE_SONATA_PAGE_ADMIN_BLOCK_LIST], methods: null }
        - { path: ^/admin/sonata/page/block/create$, roles: [ROLE_SONATA_PAGE_ADMIN_BLOCK_CREATE], methods: null }
        - { path: ^/admin/sonata/page/block/update$, roles: [ROLE_SONATA_PAGE_ADMIN_BLOCK_UPDATE], methods: null }
        - { path: ^/admin/sonata/page/block/batch$, roles: [ROLE_SONATA_PAGE_ADMIN_BLOCK_BATCH], methods: null }
        - { path: ^/admin/sonata/page/block/(?P[^/]+?)/edit$, roles: [ROLE_SONATA_PAGE_ADMIN_BLOCK_EDIT], methods: null }
        - { path: ^/admin/sonata/page/block/(?P[^/]+?)/delete$, roles: [ROLE_SONATA_PAGE_ADMIN_BLOCK_DELETE], methods: null }
        - { path: ^/admin/sonata/page/block/save\-position$, roles: [ROLE_SONATA_PAGE_ADMIN_BLOCK_SAVEPOSITION], methods: null }
        - { path: ^/admin/sonata/page/block/(?P[^/]+?)/view$, roles: [ROLE_SONATA_PAGE_ADMIN_BLOCK_VIEW], methods: null }
        - { path: ^/admin/sonata/page/template/list$, roles: [ROLE_SONATA_PAGE_ADMIN_TEMPLATE_LIST], methods: null }
        - { path: ^/admin/sonata/page/template/create$, roles: [ROLE_SONATA_PAGE_ADMIN_TEMPLATE_CREATE], methods: null }
        - { path: ^/admin/sonata/page/template/update$, roles: [ROLE_SONATA_PAGE_ADMIN_TEMPLATE_UPDATE], methods: null }
        - { path: ^/admin/sonata/page/template/batch$, roles: [ROLE_SONATA_PAGE_ADMIN_TEMPLATE_BATCH], methods: null }
        - { path: ^/admin/sonata/page/template/(?P[^/]+?)/edit$, roles: [ROLE_SONATA_PAGE_ADMIN_TEMPLATE_EDIT], methods: null }
        - { path: ^/admin/sonata/page/template/(?P[^/]+?)/delete$, roles: [ROLE_SONATA_PAGE_ADMIN_TEMPLATE_DELETE], methods: null }
        - { path: ^/admin/sonata/news/comment/list$, roles: [ROLE_SONATA_NEWS_ADMIN_COMMENT_LIST], methods: null }
        - { path: ^/admin/sonata/news/comment/create$, roles: [ROLE_SONATA_NEWS_ADMIN_COMMENT_CREATE], methods: null }
        - { path: ^/admin/sonata/news/comment/update$, roles: [ROLE_SONATA_NEWS_ADMIN_COMMENT_UPDATE], methods: null }
        - { path: ^/admin/sonata/news/comment/batch$, roles: [ROLE_SONATA_NEWS_ADMIN_COMMENT_BATCH], methods: null }
        - { path: ^/admin/sonata/news/comment/(?P[^/]+?)/edit$, roles: [ROLE_SONATA_NEWS_ADMIN_COMMENT_EDIT], methods: null }
        - { path: ^/admin/sonata/news/comment/(?P[^/]+?)/delete$, roles: [ROLE_SONATA_NEWS_ADMIN_COMMENT_DELETE], methods: null }
        - { path: ^/admin/sonata/news/post/list$, roles: [ROLE_SONATA_NEWS_ADMIN_POST_LIST], methods: null }
        - { path: ^/admin/sonata/news/post/create$, roles: [ROLE_SONATA_NEWS_ADMIN_POST_CREATE], methods: null }
        - { path: ^/admin/sonata/news/post/update$, roles: [ROLE_SONATA_NEWS_ADMIN_POST_UPDATE], methods: null }
        - { path: ^/admin/sonata/news/post/batch$, roles: [ROLE_SONATA_NEWS_ADMIN_POST_BATCH], methods: null }
        - { path: ^/admin/sonata/news/post/(?P[^/]+?)/edit$, roles: [ROLE_SONATA_NEWS_ADMIN_POST_EDIT], methods: null }
        - { path: ^/admin/sonata/news/post/(?P[^/]+?)/delete$, roles: [ROLE_SONATA_NEWS_ADMIN_POST_DELETE], methods: null }
        - { path: ^/admin/sonata/news/post/(?P[^/]+?)/comment/list$, roles: [ROLE_SONATA_NEWS_ADMIN_POST_SONATA_NEWS_ADMIN_COMMENT_LIST], methods: null }
        - { path: ^/admin/sonata/news/post/(?P[^/]+?)/comment/create$, roles: [ROLE_SONATA_NEWS_ADMIN_POST_SONATA_NEWS_ADMIN_COMMENT_CREATE], methods: null }
        - { path: ^/admin/sonata/news/post/(?P[^/]+?)/comment/update$, roles: [ROLE_SONATA_NEWS_ADMIN_POST_SONATA_NEWS_ADMIN_COMMENT_UPDATE], methods: null }
        - { path: ^/admin/sonata/news/post/(?P[^/]+?)/comment/batch$, roles: [ROLE_SONATA_NEWS_ADMIN_POST_SONATA_NEWS_ADMIN_COMMENT_BATCH], methods: null }
        - { path: ^/admin/sonata/news/post/(?P[^/]+?)/comment/(?P[^/]+?)/edit$, roles: [ROLE_SONATA_NEWS_ADMIN_POST_SONATA_NEWS_ADMIN_COMMENT_EDIT], methods: null }
        - { path: ^/admin/sonata/news/post/(?P[^/]+?)/comment/(?P[^/]+?)/delete$, roles: [ROLE_SONATA_NEWS_ADMIN_POST_SONATA_NEWS_ADMIN_COMMENT_DELETE], methods: null }
        - { path: ^/admin/sonata/news/tag/list$, roles: [ROLE_SONATA_NEWS_ADMIN_TAG_LIST], methods: null }
        - { path: ^/admin/sonata/news/tag/create$, roles: [ROLE_SONATA_NEWS_ADMIN_TAG_CREATE], methods: null }
        - { path: ^/admin/sonata/news/tag/update$, roles: [ROLE_SONATA_NEWS_ADMIN_TAG_UPDATE], methods: null }
        - { path: ^/admin/sonata/news/tag/batch$, roles: [ROLE_SONATA_NEWS_ADMIN_TAG_BATCH], methods: null }
        - { path: ^/admin/sonata/news/tag/(?P[^/]+?)/edit$, roles: [ROLE_SONATA_NEWS_ADMIN_TAG_EDIT], methods: null }
        - { path: ^/admin/sonata/news/tag/(?P[^/]+?)/delete$, roles: [ROLE_SONATA_NEWS_ADMIN_TAG_DELETE], methods: null }
        - { path: ^/admin/sonata/user/user/list$, roles: [ROLE_SONATA_USER_ADMIN_USER_LIST], methods: null }
        - { path: ^/admin/sonata/user/user/create$, roles: [ROLE_SONATA_USER_ADMIN_USER_CREATE], methods: null }
        - { path: ^/admin/sonata/user/user/update$, roles: [ROLE_SONATA_USER_ADMIN_USER_UPDATE], methods: null }
        - { path: ^/admin/sonata/user/user/batch$, roles: [ROLE_SONATA_USER_ADMIN_USER_BATCH], methods: null }
        - { path: ^/admin/sonata/user/user/(?P[^/]+?)/edit$, roles: [ROLE_SONATA_USER_ADMIN_USER_EDIT], methods: null }
        - { path: ^/admin/sonata/user/user/(?P[^/]+?)/delete$, roles: [ROLE_SONATA_USER_ADMIN_USER_DELETE], methods: null }
        - { path: ^/admin/sonata/user/group/list$, roles: [ROLE_SONATA_USER_ADMIN_GROUP_LIST], methods: null }
        - { path: ^/admin/sonata/user/group/create$, roles: [ROLE_SONATA_USER_ADMIN_GROUP_CREATE], methods: null }
        - { path: ^/admin/sonata/user/group/update$, roles: [ROLE_SONATA_USER_ADMIN_GROUP_UPDATE], methods: null }
        - { path: ^/admin/sonata/user/group/batch$, roles: [ROLE_SONATA_USER_ADMIN_GROUP_BATCH], methods: null }
        - { path: ^/admin/sonata/user/group/(?P[^/]+?)/edit$, roles: [ROLE_SONATA_USER_ADMIN_GROUP_EDIT], methods: null }
        - { path: ^/admin/sonata/user/group/(?P[^/]+?)/delete$, roles: [ROLE_SONATA_USER_ADMIN_GROUP_DELETE], methods: null }

    role_hierarchy:
        ROLE_SONATA_MEDIA_ADMIN_MEDIA: [ROLE_SONATA_MEDIA_ADMIN_MEDIA_LIST, ROLE_SONATA_MEDIA_ADMIN_MEDIA_CREATE, ROLE_SONATA_MEDIA_ADMIN_MEDIA_UPDATE, ROLE_SONATA_MEDIA_ADMIN_MEDIA_BATCH, ROLE_SONATA_MEDIA_ADMIN_MEDIA_EDIT, ROLE_SONATA_MEDIA_ADMIN_MEDIA_DELETE, ROLE_SONATA_MEDIA_ADMIN_MEDIA_VIEW]
        ROLE_SONATA_MEDIA_ADMIN_GALLERY: [ROLE_SONATA_MEDIA_ADMIN_GALLERY_LIST, ROLE_SONATA_MEDIA_ADMIN_GALLERY_CREATE, ROLE_SONATA_MEDIA_ADMIN_GALLERY_UPDATE, ROLE_SONATA_MEDIA_ADMIN_GALLERY_BATCH, ROLE_SONATA_MEDIA_ADMIN_GALLERY_EDIT, ROLE_SONATA_MEDIA_ADMIN_GALLERY_DELETE]
        ROLE_SONATA_MEDIA_ADMIN_GALLERY_HAS_MEDIA: [ROLE_SONATA_MEDIA_ADMIN_GALLERY_HAS_MEDIA_LIST, ROLE_SONATA_MEDIA_ADMIN_GALLERY_HAS_MEDIA_CREATE, ROLE_SONATA_MEDIA_ADMIN_GALLERY_HAS_MEDIA_UPDATE, ROLE_SONATA_MEDIA_ADMIN_GALLERY_HAS_MEDIA_BATCH, ROLE_SONATA_MEDIA_ADMIN_GALLERY_HAS_MEDIA_EDIT, ROLE_SONATA_MEDIA_ADMIN_GALLERY_HAS_MEDIA_DELETE]
        ROLE_SONATA_PAGE_ADMIN_PAGE: [ROLE_SONATA_PAGE_ADMIN_PAGE_LIST, ROLE_SONATA_PAGE_ADMIN_PAGE_CREATE, ROLE_SONATA_PAGE_ADMIN_PAGE_UPDATE, ROLE_SONATA_PAGE_ADMIN_PAGE_BATCH, ROLE_SONATA_PAGE_ADMIN_PAGE_EDIT, ROLE_SONATA_PAGE_ADMIN_PAGE_DELETE]
        ROLE_SONATA_PAGE_ADMIN_PAGE_SONATA_PAGE_ADMIN_BLOCK: [ROLE_SONATA_PAGE_ADMIN_PAGE_SONATA_PAGE_ADMIN_BLOCK_LIST, ROLE_SONATA_PAGE_ADMIN_PAGE_SONATA_PAGE_ADMIN_BLOCK_CREATE, ROLE_SONATA_PAGE_ADMIN_PAGE_SONATA_PAGE_ADMIN_BLOCK_UPDATE, ROLE_SONATA_PAGE_ADMIN_PAGE_SONATA_PAGE_ADMIN_BLOCK_BATCH, ROLE_SONATA_PAGE_ADMIN_PAGE_SONATA_PAGE_ADMIN_BLOCK_EDIT, ROLE_SONATA_PAGE_ADMIN_PAGE_SONATA_PAGE_ADMIN_BLOCK_DELETE, ROLE_SONATA_PAGE_ADMIN_PAGE_SONATA_PAGE_ADMIN_BLOCK_SAVEPOSITION, ROLE_SONATA_PAGE_ADMIN_PAGE_SONATA_PAGE_ADMIN_BLOCK_VIEW]
        ROLE_SONATA_PAGE_ADMIN_BLOCK: [ROLE_SONATA_PAGE_ADMIN_BLOCK_LIST, ROLE_SONATA_PAGE_ADMIN_BLOCK_CREATE, ROLE_SONATA_PAGE_ADMIN_BLOCK_UPDATE, ROLE_SONATA_PAGE_ADMIN_BLOCK_BATCH, ROLE_SONATA_PAGE_ADMIN_BLOCK_EDIT, ROLE_SONATA_PAGE_ADMIN_BLOCK_DELETE, ROLE_SONATA_PAGE_ADMIN_BLOCK_SAVEPOSITION, ROLE_SONATA_PAGE_ADMIN_BLOCK_VIEW]
        ROLE_SONATA_PAGE_ADMIN_TEMPLATE: [ROLE_SONATA_PAGE_ADMIN_TEMPLATE_LIST, ROLE_SONATA_PAGE_ADMIN_TEMPLATE_CREATE, ROLE_SONATA_PAGE_ADMIN_TEMPLATE_UPDATE, ROLE_SONATA_PAGE_ADMIN_TEMPLATE_BATCH, ROLE_SONATA_PAGE_ADMIN_TEMPLATE_EDIT, ROLE_SONATA_PAGE_ADMIN_TEMPLATE_DELETE]
        ROLE_SONATA_NEWS_ADMIN_COMMENT: [ROLE_SONATA_NEWS_ADMIN_COMMENT_LIST, ROLE_SONATA_NEWS_ADMIN_COMMENT_CREATE, ROLE_SONATA_NEWS_ADMIN_COMMENT_UPDATE, ROLE_SONATA_NEWS_ADMIN_COMMENT_BATCH, ROLE_SONATA_NEWS_ADMIN_COMMENT_EDIT, ROLE_SONATA_NEWS_ADMIN_COMMENT_DELETE]
        ROLE_SONATA_NEWS_ADMIN_POST: [ROLE_SONATA_NEWS_ADMIN_POST_LIST, ROLE_SONATA_NEWS_ADMIN_POST_CREATE, ROLE_SONATA_NEWS_ADMIN_POST_UPDATE, ROLE_SONATA_NEWS_ADMIN_POST_BATCH, ROLE_SONATA_NEWS_ADMIN_POST_EDIT, ROLE_SONATA_NEWS_ADMIN_POST_DELETE]
        ROLE_SONATA_NEWS_ADMIN_POST_SONATA_NEWS_ADMIN_COMMENT: [ROLE_SONATA_NEWS_ADMIN_POST_SONATA_NEWS_ADMIN_COMMENT_LIST, ROLE_SONATA_NEWS_ADMIN_POST_SONATA_NEWS_ADMIN_COMMENT_CREATE, ROLE_SONATA_NEWS_ADMIN_POST_SONATA_NEWS_ADMIN_COMMENT_UPDATE, ROLE_SONATA_NEWS_ADMIN_POST_SONATA_NEWS_ADMIN_COMMENT_BATCH, ROLE_SONATA_NEWS_ADMIN_POST_SONATA_NEWS_ADMIN_COMMENT_EDIT, ROLE_SONATA_NEWS_ADMIN_POST_SONATA_NEWS_ADMIN_COMMENT_DELETE]
        ROLE_SONATA_NEWS_ADMIN_TAG: [ROLE_SONATA_NEWS_ADMIN_TAG_LIST, ROLE_SONATA_NEWS_ADMIN_TAG_CREATE, ROLE_SONATA_NEWS_ADMIN_TAG_UPDATE, ROLE_SONATA_NEWS_ADMIN_TAG_BATCH, ROLE_SONATA_NEWS_ADMIN_TAG_EDIT, ROLE_SONATA_NEWS_ADMIN_TAG_DELETE]
        ROLE_SONATA_USER_ADMIN_USER: [ROLE_SONATA_USER_ADMIN_USER_LIST, ROLE_SONATA_USER_ADMIN_USER_CREATE, ROLE_SONATA_USER_ADMIN_USER_UPDATE, ROLE_SONATA_USER_ADMIN_USER_BATCH, ROLE_SONATA_USER_ADMIN_USER_EDIT, ROLE_SONATA_USER_ADMIN_USER_DELETE]
        ROLE_SONATA_USER_ADMIN_GROUP: [ROLE_SONATA_USER_ADMIN_GROUP_LIST, ROLE_SONATA_USER_ADMIN_GROUP_CREATE, ROLE_SONATA_USER_ADMIN_GROUP_UPDATE, ROLE_SONATA_USER_ADMIN_GROUP_BATCH, ROLE_SONATA_USER_ADMIN_GROUP_EDIT, ROLE_SONATA_USER_ADMIN_GROUP_DELETE]
        ROLE_SONATA_ADMIN_ROOT: [ROLE_SONATA_MEDIA_ADMIN_MEDIA, ROLE_SONATA_MEDIA_ADMIN_GALLERY, ROLE_SONATA_MEDIA_ADMIN_GALLERY_HAS_MEDIA, ROLE_SONATA_PAGE_ADMIN_PAGE, ROLE_SONATA_PAGE_ADMIN_PAGE_SONATA_PAGE_ADMIN_BLOCK, ROLE_SONATA_PAGE_ADMIN_BLOCK, ROLE_SONATA_PAGE_ADMIN_TEMPLATE, ROLE_SONATA_NEWS_ADMIN_COMMENT, ROLE_SONATA_NEWS_ADMIN_POST, ROLE_SONATA_NEWS_ADMIN_POST_SONATA_NEWS_ADMIN_COMMENT, ROLE_SONATA_NEWS_ADMIN_TAG, ROLE_SONATA_USER_ADMIN_USER, ROLE_SONATA_USER_ADMIN_GROUP]