Phoca
Phoca Seal

Phoca Gallery 2.8.1 Permission problem for categories

Before you ask see the Phoca Gallery User Manual

Phoca Gallery 2.8.1 Permission problem for categories

Postby error on 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?
error
Phoca Newbie
Phoca Newbie
 
Posts: 3
Joined: 05 Mar 2013, 19:23

Google Ads


Re: Phoca Gallery 2.8.1 Permission problem for categories

Postby Jan on 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 some Phoca extensions useful, please vote for them on: extensions.joomla.org
User avatar
Jan
Phoca Hero
Phoca Hero
 
Posts: 32774
Joined: 10 Nov 2007, 18:23
Location: Czech Republic

Re: Phoca Gallery 2.8.1 Permission problem for categories

Postby error on 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.
error
Phoca Newbie
Phoca Newbie
 
Posts: 3
Joined: 05 Mar 2013, 19:23

Re: Phoca Gallery 2.8.1 Permission problem for categories

Postby Jan on 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 some Phoca extensions useful, please vote for them on: extensions.joomla.org
User avatar
Jan
Phoca Hero
Phoca Hero
 
Posts: 32774
Joined: 10 Nov 2007, 18:23
Location: Czech Republic

Re: Phoca Gallery 2.8.1 Permission problem for categories

Postby error on 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 :)
error
Phoca Newbie
Phoca Newbie
 
Posts: 3
Joined: 05 Mar 2013, 19:23

Re: Phoca Gallery 2.8.1 Permission problem for categories

Postby Jan on 21 Mar 2013, 01:06

Ok
If you find some Phoca extensions useful, please vote for them on: extensions.joomla.org
User avatar
Jan
Phoca Hero
Phoca Hero
 
Posts: 32774
Joined: 10 Nov 2007, 18:23
Location: Czech Republic


Return to Phoca Gallery

Who is online

Users browsing this forum: Bing [Bot] and 1 guest