? Failure

User tests: Successful: Unsuccessful:

avatar berlanda
berlanda
31 Aug 2014

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');
}
[...]

avatar berlanda berlanda - open - 31 Aug 2014
avatar jissues-bot jissues-bot - change - 31 Aug 2014
Status Pending New
Labels Added: ?
avatar zero-24
zero-24 - comment - 31 Aug 2014

@test successful good catch.

avatar berlanda
berlanda - comment - 31 Aug 2014

I did the changes you suggested.
I just did not understand where I would have to remove the spaces.

avatar zero-24
zero-24 - comment - 31 Aug 2014

@berlanda

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

avatar zero-24 zero-24 - change - 31 Aug 2014
The description was changed
Status New Pending
Easy No Yes
avatar berlanda
berlanda - comment - 31 Aug 2014

Done. Thank you.

avatar zero-24 zero-24 - change - 31 Aug 2014
Category ACL
avatar zero-24
zero-24 - comment - 31 Aug 2014

thanks @berlanda so we need on more test here :+1:

This comment was created with the J!Tracker Application at http://issues.joomla.org/.

avatar phproberto phproberto - change - 6 Sep 2014
Status Pending Closed
Closed_Date 0000-00-00 00:00:00 2014-09-06 16:37:26
avatar phproberto phproberto - close - 6 Sep 2014

Add a Comment

Login with GitHub to post a comment