Phoca Gallery 2.8.1 Permission problem for categories

Phoca Gallery - image gallery extension
error
Phoca Newbie
Phoca Newbie
Posts: 3
Joined: 05 Mar 2013, 19:23

Phoca Gallery 2.8.1 Permission problem for categories

Post 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?
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 47810
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Phoca Gallery 2.8.1 Permission problem for categories

Post by Jan »

Hi, really no idea what can be wrong, Joomla! version does not have any influence on Phoca rights?
If you find Phoca extensions useful, please support the project
error
Phoca Newbie
Phoca Newbie
Posts: 3
Joined: 05 Mar 2013, 19:23

Re: Phoca Gallery 2.8.1 Permission problem for categories

Post 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.
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 47810
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Phoca Gallery 2.8.1 Permission problem for categories

Post 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
If you find Phoca extensions useful, please support the project
error
Phoca Newbie
Phoca Newbie
Posts: 3
Joined: 05 Mar 2013, 19:23

Re: Phoca Gallery 2.8.1 Permission problem for categories

Post 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 :)
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 47810
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Phoca Gallery 2.8.1 Permission problem for categories

Post by Jan »

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