Permissions for global_checkin can’t be set
I tried to have administrators use the global checkin function on a Joomla 2.5 site and in spite of how the permissions were set, the administrators did not have access to use the global checkin.
I found this solution on the joomla forum (http://forum.joomla.org/viewtopic.php?f=616&t=642208)
“The reason why we can’t give access to administrators is that Joomla team hardcoded permision for com_checkin (and some others) inside the component itself. So it is irrelevant what do we do on admin panel. This is quite stupid, because Joomla could simply hide options for permissions if that does not make any change.
Now, the solution:
Open file administrator/components/com_checkin/checkin.php and find line 13
if (!JFactory::getUser()->authorise(‘core.admin’)) {
return JError::raiseWarning(404, JText::_(‘JERROR_ALERTNOAUTHOR’));
}
This code causes the problem I was talking about. Change it with this to allow this component to be controlled by permissions settings.
return JError::raiseWarning(404, JText::_(‘JERROR_ALERTNOAUTHOR’));
}
Tags: Joomla!, permissions