User tests: Successful: Unsuccessful:
Tracker issue:
http://joomlacode.org/gf/project/joomla/tracker/?action=TrackerItemEdit&tracker_item_id=32361&start=0
This pull request fixes:
I also improved search tools with:
clearListOptions
option to be able to enable disable it)@infograf768 options dissappear is not related with this patch (you can check it also happens in contacts) but with the permissions checking done in:
http://joomlacode.org/gf/project/joomla/tracker/?action=TrackerItemEdit&tracker_item_id=30417
Pull request:
#2049
Apparently that mixed content helpers into one single helper to remove duplicated code.
The button is enabled in the view.html.php
when this if statement is true:
if ($canDo->get('core.admin'))
{
JToolbarHelper::preferences('com_content');
}
As you see the user requries rights for core.admin
. The permissions are loaded with:
$canDo = JHelperContent::getActions($this->state->get('filter.category_id'), 0, 'com_content');
when you filter by category the call is like:
$canDo = JHelperContent::getActions(20, 0, 'com_content');
Internally JHelperContent
detects that it has to check in the com_content access.xml
inside section category
:
section: category | asset: com_content.category.20
But the core.admin
does not exist in the category section of access.xml
:
<section name="category">
<action name="core.create" title="JACTION_CREATE" description="COM_CATEGORIES_ACCESS_CREATE_DESC" />
<action name="core.delete" title="JACTION_DELETE" description="COM_CATEGORIES_ACCESS_DELETE_DESC" />
<action name="core.edit" title="JACTION_EDIT" description="COM_CATEGORIES_ACCESS_EDIT_DESC" />
<action name="core.edit.state" title="JACTION_EDITSTATE" description="COM_CATEGORIES_ACCESS_EDITSTATE_DESC" />
<action name="core.edit.own" title="JACTION_EDITOWN" description="COM_CATEGORIES_ACCESS_EDITOWN_DESC" />
</section>
And I think it's wrong because it should be checking component specific permissions, not category.
Options still disapear when filtering by a specific category in article manager
Big bug: language filter filters by language installed, NOT by Content language as it should
type in filters_xxx.xml should be
type="contentlanguage"
not
type="language"