PP shows unapproved and view level restricted categories
Posted: 04 May 2016, 10:17
I wonder why PP uses own models instead of using PG model. But anyway.
I copied some code from PG to PP models with some changes to make it work.
Now users in PP don't see unapproved or restricted to view levels categories (e.g. guest don't see categories viewable only for Reistred users).
Here are the updated files. My changes are marked with ##my so easy to find and see what has been changed and why.
components/com_phocaphoto/models/categories.php
https://paste.opensuse.org/93780577
And
components/com_phocaphoto/models/category.php
https://paste.opensuse.org/26024623
Jan, please check and let me know.
P.S. I didn't check if PP doesn't restrict images themselves. I suspect the images are not restricted too. And this must be fixed, I believe.
I copied some code from PG to PP models with some changes to make it work.
Now users in PP don't see unapproved or restricted to view levels categories (e.g. guest don't see categories viewable only for Reistred users).
Here are the updated files. My changes are marked with ##my so easy to find and see what has been changed and why.
components/com_phocaphoto/models/categories.php
https://paste.opensuse.org/93780577
And
components/com_phocaphoto/models/category.php
https://paste.opensuse.org/26024623
Jan, please check and let me know.
P.S. I didn't check if PP doesn't restrict images themselves. I suspect the images are not restricted too. And this must be fixed, I believe.