User tests: Successful: Unsuccessful:
This will allow to set ACL different groups based on category permissions, for example:
access.xml
<section name="component">
[...]
</section>
<section name="category">
<action name="roles.list" title="roles list" description="" />
<action name="roles.manage" title="roles manage" description="" />
</section>
view.html.php (view of a generic component)
[...]
$this->canDo = JHelperContent::getActions('com_componentname', 'category', $item->catid);
if (!$this->canDo->get('roles.manage')) {
JError::raiseWarning(404, JText::_('JERROR_ALERTNOAUTHOR'));
$app = JFactory::getApplication();
$app->redirect('index.php');
}
[...]
Status | Pending | ⇒ | New |
Labels |
Added:
?
|
I did the changes you suggested.
I just did not understand where I would have to remove the spaces.
I just did not understand where I would have to remove the spaces.
on line 123: https://github.com/joomla/joomla-cms/pull/4198/files#diff-70a9f5171aac5ecc71b5c63f03bdfee1R123 do you add two tabs that should be removed :D
Status | New | ⇒ | Pending |
Easy | No | ⇒ | Yes |
Done. Thank you.
Category | ⇒ | ACL |
thanks @berlanda so we need on more test here
This comment was created with the J!Tracker Application at http://issues.joomla.org/.
Status | Pending | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2014-09-06 16:37:26 |
@test successful good catch.