Perlkonig / grav-skeleton-knowledge-base

Skeleton package of the Knowledge Base theme for Grav CMS
https://www.perlkonig.com/knowledge-base
MIT License
22 stars 14 forks source link

Work with Grav Login to hide categories/articles inaccessible to viewer. #8

Open hifall opened 6 years ago

hifall commented 6 years ago

I wonder if it's possible to hide categories/articles in listing to viewers without certain permissions.

Grav already has this wonderful plugin: Login to restrict access from certain viewers. When a page is protect by this plugin, the viewer will have to log in in order to view it.

However, even a page is protect, it still shows up on the portal page of grav-skeleton-knowledge-base. Is it possible to hide such pages as well?

Thanks!

Perlkonig commented 6 years ago

I've never used the Login plugin, so I wouldn't know how. I'll have to do some research, but to be honest, I'm extraordinarily busy at the moment, so it's going to be a while before I can. As always, I'm open to pull requests. Leaving this issue open to remind me. Thanks!