Skip to content

ACL getActions consistency improvements for all components#220

Closed
sanderpotjer wants to merge 1 commit intojoomla:masterfrom
sanderpotjer:acllevels
Closed

ACL getActions consistency improvements for all components#220
sanderpotjer wants to merge 1 commit intojoomla:masterfrom
sanderpotjer:acllevels

Conversation

@sanderpotjer
Copy link
Copy Markdown
Member

This commit will improve the consistent use of the ACL API across the Joomla components. It also removes the level part of the getActions check for certain components. You want to have all component actions and not just of the specific section, and the component should contain all actions of the other sections of access.xml. Otherwise you might not be able to check for core.manage action to show the permission settings fieldset in an different section for example.

@sanderpotjer
Copy link
Copy Markdown
Member Author

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

From reading the code it looks like you're always getting the component actions. So this only works if there are no additional rights for items, correct? Certainly a reasonable assumption, just making sure I correctly understand this.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes that is correct. But an additional right for an item should also be available in the component actions, otherwise you can't set an action item wide.

wilsonge pushed a commit that referenced this pull request Jan 23, 2017
Menu item - Module assign column alignment
wilsonge pushed a commit that referenced this pull request Jun 4, 2017
richard67 pushed a commit to richard67/joomla-cms that referenced this pull request Apr 3, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants