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?
Phoca Gallery 2.8.1 Permission problem for categories
-
- Phoca Newbie
- Posts: 3
- Joined: 05 Mar 2013, 19:23
- Jan
- Phoca Hero
- Posts: 47883
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: Phoca Gallery 2.8.1 Permission problem for categories
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
-
- Phoca Newbie
- Posts: 3
- Joined: 05 Mar 2013, 19:23
Re: Phoca Gallery 2.8.1 Permission problem for categories
Is this a question to me?Joomla! version does not have any influence on Phoca rights?
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.
- Jan
- Phoca Hero
- Posts: 47883
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: Phoca Gallery 2.8.1 Permission problem for categories
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
Jan
- 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
Jan
If you find Phoca extensions useful, please support the project
-
- Phoca Newbie
- Posts: 3
- Joined: 05 Mar 2013, 19:23
Re: Phoca Gallery 2.8.1 Permission problem for categories
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
The last line handles if a category is displayed or not
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);
- Jan
- Phoca Hero
- Posts: 47883
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: Phoca Gallery 2.8.1 Permission problem for categories
Ok
If you find Phoca extensions useful, please support the project