Phoca Gallery 2.8.1 Permission problem for categories

Before you ask see the Phoca Gallery User Manual
error
Phoca Newbie
Phoca Newbie
Posts: 3
Joined: 05 Mar 2013, 19:23

Phoca Gallery 2.8.1 Permission problem for categories

Postby error » 05 Mar 2013, 19:30

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: 36670
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Phoca Gallery 2.8.1 Permission problem for categories

Postby Jan » 06 Mar 2013, 19:04

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

Postby error » 07 Mar 2013, 14:11

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: 36670
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Phoca Gallery 2.8.1 Permission problem for categories

Postby Jan » 16 Mar 2013, 02:14

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

Postby error » 16 Mar 2013, 17:14

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: 36670
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Phoca Gallery 2.8.1 Permission problem for categories

Postby Jan » 21 Mar 2013, 01:06

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


Return to “Phoca Gallery”

Who is online

Users browsing this forum: Google [Bot] and 3 guests