Allow custom acl path in adminhtml.xml by using <acl> tag #2321
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description (*)
I have not fully tested this change yet, but wanted to seek feedback on if this is a good idea or not.
This PR will let you set a custom ACL
resource_id
inadminhtml.xml
that is different than the XML structure. For example:Note the lines:
I think this could be a useful addition because in PR #2317 we may want to change the menu structure, but do not want to break current ACL permissions. Also, that PR expects to find generic EAV permissions atadmin/eav/$ENTITY/attributes
andadmin/eav/$ENTITY/sets
but we don't want to force the user to conform to our menu or ACL structure.Edit: this PR is actually not necessary for #2317 but I will leave this PR open in case there might be other use-cases for changing the ACL path.
Related Pull Requests
#2317
Fixed Issues (if relevant)
Manual testing scenarios (*)
Catalog > Attributes > Attributes
&Catalog > Attributes > Sets
allowedMage/Catalog/etc/adminhtml.xml
to reflect a different menu and ACL structureI also should test to make sure nothing else breaks with the API/API2 module. I honestly don't use either of those API modules nor do I use ACL often, so if anyone can see where this might break something, please let me know. I do not expect this PR to be merged quickly.
Questions or comments
Contribution checklist (*)