Backend permissions

Phoca Maps - displaying maps in Joomla! CMS
payonk
Phoca Newbie
Phoca Newbie
Posts: 2
Joined: 09 Jan 2012, 15:40

Backend permissions

Post by payonk »

Hi,
I have a problem with Phoca Maps 2.0.4.

I've added a user an user group and add every permission to Phoca maps component.

But when I try to go to component as a new user (backenmenu > componets > phoca maps) i get an error:
"You are not authorised to view this resource."

I've configured other extensions for this user an they are working fine.
There is no problem in super user account.

Thx for help
payonk
Phoca Newbie
Phoca Newbie
Posts: 2
Joined: 09 Jan 2012, 15:40

Re: Backend permissions

Post by payonk »

OK i've found a solution.
I think there is a bug in
administrator/components/com_phocamaps/phocamaps.php : line 12-14

insted of

Code: Select all

if (!JFactory::getUser()->authorise('core.manage', 'com_maps')) {
	return JError::raiseWarning(404, JText::_('JERROR_ALERTNOAUTHOR'));
}
there should be

Code: Select all

if (!JFactory::getUser()->authorise('core.manage', 'com_phocamaps')) {
	return JError::raiseWarning(404, JText::_('JERROR_ALERTNOAUTHOR'));
}
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48402
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Backend permissions

Post by Jan »

Hi, thank you for this info, I will fix it for the next release.

Jan
If you find Phoca extensions useful, please support the project
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48402
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Backend permissions

Post by Jan »

Should be fixed in 2.0.5

Jan
If you find Phoca extensions useful, please support the project
Post Reply