Skip to content

acl.xml definition #1110

Closed
Closed
@tzyganu

Description

@tzyganu

First of all, thank you for the new method of generating the admin menu from menu.xml files using add tags and parent attributes.
I think it would be easier to do the same for the acl.xml file. Here is an example from the acl.xml from the Magento_GoogleShopping module

        <resource id="Magento_Backend::admin">
            <resource id="Magento_Catalog::catalog">
                <resource id="Magento_GoogleShopping::googleshopping" title="Google Content" sortOrder="20">
                    <resource id="Magento_GoogleShopping::types" title="Attributes" sortOrder="10" />
                    <resource id="Magento_GoogleShopping::items" title="Items" sortOrder="20" />
                </resource>
            </resource>
        </resource>

it would be cleaner and consistent with the menu generation if I was able to do this

<resource id="Magento_GoogleShopping::googleshopping" title="Google Content" sortOrder="20" parent="Magento_Catalog::catalog"> <!-- notice the parent attribute -->
......
 </resource>

If there is a reason (other than lack of time) why is not implemented like this, let me know and I will shut up 😄

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions