Phoca gallery plugin and user category access
-
- Phoca Newbie
- Posts: 4
- Joined: 29 Aug 2023, 22:09
Phoca gallery plugin and user category access
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.
- Jan
- Phoca Hero
- Posts: 48343
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: Phoca gallery plugin and user category access
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
Jan
If you find Phoca extensions useful, please support the project
-
- Phoca Newbie
- Posts: 4
- Joined: 29 Aug 2023, 22:09
Re: Phoca gallery plugin and user category access
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...
- Jan
- Phoca Hero
- Posts: 48343
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: Phoca gallery plugin and user category access
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
Jan
If you find Phoca extensions useful, please support the project