Phoca gallery plugin and user category access

Phoca Gallery - image gallery extension
tanyat1965
Phoca Newbie
Phoca Newbie
Posts: 4
Joined: 29 Aug 2023, 22:09

Phoca gallery plugin and user category access

Post by tanyat1965 »

I 'm trying to use Phoca gallery plugin to show users their photo. User must see his own photo, not the other users. I make modules and use {phocagallery view=category|categoryid=1053} every user has access only to his own category. But when users login he see not only his photos but other users too... Module has accssess foe registered? but category has access only for definite user.... Any help will be appreciated.
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48343
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Phoca gallery plugin and user category access

Post by Jan »

Hi, if you are using plugins, such are displayed inside articles and there the article permissions (user rights) are valid, not the rights from plugins. To have fully rights managment for the gallery, you need to use component.

Jan
If you find Phoca extensions useful, please support the project
tanyat1965
Phoca Newbie
Phoca Newbie
Posts: 4
Joined: 29 Aug 2023, 22:09

Re: Phoca gallery plugin and user category access

Post by tanyat1965 »

Thank you Jan. I use component and assign every category its own user. Cat1 (id 1055): access->registrated and access right ->user1 (for example). Cat2 (id 1054): access->registrated and access right ->user2. After it I create using phoca gallery plugin module1 -> {phocagallery view=category|id=1055} and module2 {phocagallery view=category|id=1054} (access - registrated for both module). If I login as user1 I see photos for user1 and user 2....although I need to see only photos for user1. Can't understand what's wrong...
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48343
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Phoca gallery plugin and user category access

Post by Jan »

Hi, as I wrote above, the access does not work for items in plugin code, because on such site the access rights are managed by the article not by the plugins inside the article.

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