Page 1 of 1

Phoca Gallery 2.8.1 Permission problem for categories

Posted: 05 Mar 2013, 19:30
by error
Hi there,
i updated my Phoca Gallery to 2.8.1 on a Joomla 1.5.26. Before i had Joomla 1.5.15 with a Phoca Gallery 2.5.8.
With my older version i used to control my gallery permission by access level (public, registred or special). But now the plugin ignores this settings. It shows all my embedded categories public. How can i fix this?

Re: Phoca Gallery 2.8.1 Permission problem for categories

Posted: 06 Mar 2013, 19:04
by Jan
Hi, really no idea what can be wrong, Joomla! version does not have any influence on Phoca rights?

Re: Phoca Gallery 2.8.1 Permission problem for categories

Posted: 07 Mar 2013, 14:11
by error
Joomla! version does not have any influence on Phoca rights?
Is this a question to me?
What i forgot to mention was that i also updated the Phoca Galley Plugin but i can not find the version number that i use.
Imagen i have a category with pictures in it. This category has permission "registred" and ID 1.
I embed this category in my article by e.g. {phocagallery view=categories|categoryid=1}.
Before my update visitors could see all the pictures when logged in. If you a visitor was not logged in nothing showed up.
Now it does not matter if logged in or not the pictures will show up every time.
Hope I could explain it more clear now.
If there is no solution for this can someone advice me an alternitive?

Thanks so far.

Re: Phoca Gallery 2.8.1 Permission problem for categories

Posted: 16 Mar 2013, 02:14
by Jan
Hi, the ? means that I don't understand what can be wrong there.

- the plugin does not have any influence or dependency to component't rights, the same with version of Joomla! or Phoca Gallery - access rights are not changed between updates - so really no idea what can be wrong there :idea:

Jan

Re: Phoca Gallery 2.8.1 Permission problem for categories

Posted: 16 Mar 2013, 17:14
by error
Hi again,

i got it now. After I remembered that I have modified the plugin I compared the old with the new one and found my own piece of code :)

Code: Select all

			//-----------------------
			// DISPLAYING OF IMAGES
			//-----------------------
			if ($view == 'category') {
				
				$where = '';
				$where = ' AND access <= ' . $user->get('aid', 0);
The last line handles if a category is displayed or not :)

Re: Phoca Gallery 2.8.1 Permission problem for categories

Posted: 21 Mar 2013, 01:06
by Jan
Ok