ALC — Joomla! Edit own not working

Category: Joomla 2.x
Posted on: 03.04.2014 в 00:23 - Комментариев нет - Visited 1883 times

You have to edit libraries/joomla/application/component/controllerform.php to fix this issue;

Find:

protected function allowEdit($data = array(), $key = 'id')
{
	return JFactory::getUser()->authorise('core.edit', $this->option);
}

Replace with:

protected function allowEdit($data = array(), $key = 'id')
{
	if (JFactory::getUser()->authorise('core.edit', $this->option) || (JFactory::getUser()->authorise('core.edit.own', $this->option))) {
		return TRUE;
	} else {
		return FALSE;
	}
}

Enjoy

Leave a comment

*