xif-fr / dokuwiki-plugin-catlist

DokuWiki plugin to list pages and namespaces recursively in nested lists
https://www.dokuwiki.org/plugin:catlist
8 stars 15 forks source link

ACL gestion #1

Closed etienneboph closed 6 years ago

etienneboph commented 6 years ago

Hi,

It could be great if an user didn't see pages he can't have access to.

Nevertheless, thank you for that great extension !

Best regards,

Etienne.

xif-fr commented 6 years ago

Hi, Normally catlist checks some ACLs when generating links. Could you point be a particular example / expected behavior ?

etienneboph commented 6 years ago

Every pages appears when I put the following code :

<catlist -noHead -noAddPageButton -maxDepth:1>

Difference is that people who doesn't have right to read a page, have the name's page in black instead of the link. Like that :

catlist-acl

It could be better if pages for which we don't have access were hidden.

xif-fr commented 6 years ago

Ok I see. I'll add an option for that when I'll have time, probably next week.

etienneboph commented 6 years ago

That would be awesome ! Thank you very much.

xif-fr commented 6 years ago

Hi, could you check if the hide_acl_nsnotr I added works for you (documented here : https://www.dokuwiki.org/plugin:catlist#global_options) ?

etienneboph commented 6 years ago

I don't know why, but when I put "<catlist -noHead -noAddPageButton hide_acl_nsnotr>", I've got the following error : "hide_acl_nsnotr category doesn't exist".

xif-fr commented 6 years ago

Ha, it's a global option. You can find it in your config manager. Maybe that's not what you wanted ?

etienneboph commented 6 years ago

Oh! Excuse me, I didn't understand. It works perfectly! Thank you very much!

xif-fr commented 6 years ago

Ok, I'll release this option in a new version.