User tests: Successful: Unsuccessful:
This pull request improves the JHelperContent::getActions() and removes duplicate code from components using their own helper file for checking the available ACL actions.
Originally I started to look into the bug reported in #32956 of JoomlaCode (http://joomlacode.org/gf/project/joomla/tracker/?action=TrackerItemEdit&tracker_item_id=32956&start=0). In that bug report the Save buttons in the toolbar are not visible when a user should be able to see them. This issue is related to pull request: #2049 where part of the Joomla getActions helpers per component are replaced by a general getActions helper.
The concept is nice, but results in several issues in Joomla 3.2 like buttons/parts not visible when a user should allow to see it.
In this pull request I propose a change of the JHelperContent::getActions() function in libraries/cms/helper/content.php. Main improvements:
With the improvements made in the JHelperContent::getActions helper I could further implement this in Joomla:
Please apply this patch and test if:
a) reported Joomla 3.2 ACL issues are solved
b) configure permissions for user groups with specific access/actions allowed is working as expected.
Thanks for testing & checking! Sander
Seems good and it fixes the issue reported at http://joomlacode.org/gf/project/joomla/tracker/?action=TrackerItemEdit&tracker_item_id=33149&start=0
Title |
|
||||||
Labels |
Added:
?
?
|
Saw a small codestyle issue. Otherwise I think code should be backward compatible from looking. Thanks!
However something seems to be wrong with your PR because there are many changes in language files which probably are not intended. You may want to have a look at that.
Ok, PR is is fixed now.
Looks indeed clean, good for testing now Thanks!
Do we need to retest it? If yes, I am having an issue with applying the patch file using tortoisegit, where it says "The filename 'libraries\cms\helper\content.php' appears more than once"
Finally managed to apply the refreshed patch, everything is still working fine. Do we need more tests on joomla code?
I think tests should be fine. Of course more tests never hurt.
In theory, it would still be possible for 3.2.2 since no language strings have changed.
@sanderpotjer PR looks to be outdated again, probably due to recent codestyle fixes. Can you update again? Sorry.
It took some time but I finally tested it
Status | New | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2014-02-02 23:57:07 |
Thanks for testing & committing @phproberto!
Jenkins still found seven codestyle issues. That's actually not that bad for 85 changed files
Should now be fixed.
JoomlaCode: http://joomlacode.org/gf/project/joomla/tracker/?action=TrackerItemEdit&tracker_item_id=33044