Not logged in. · Lost password · Register
Forum: General Help and Support Installation and Configuration RSS
How to hide pages in sitemap depending on ACL
Avatar
pcouderc #1
Member since Sep 2016 · 12 posts · Location: Fuveau, France
Group memberships: Members
Show profile · Link to this post
Subject: How to hide pages in sitemap depending on ACL
Currently in my sitemap, everyone can see the sitemap.
I would like that only the user with correct ACL can see pages concerning her, and not pages for which she has not the ACL.
Is it possible ?
Avatar
turnermm (Moderator) #2
Member since Oct 2009 · 4696 posts · Location: Canada
Group memberships: Global Moderators, Members, Super Mods
Show profile · Link to this post
Sitemap already does respect ACL.  If a user does not have permission to enter a namespace, then that namespace will be closed to the user.  However, if the user has access to the parent namespace, then the name of the closed namespace will appear in the listing, but the user still cannot enter into that namespace.  But any individual pages for which the user does not have  permission will not (or should not) appear in the listing.

Perhaps you have to reset  your permissions.  Do you know this page:
    https://www.dokuwiki.org/acl?
Myron Turner
github: https://github.com/turnermm
plugins, templates: http://www.mturner.org/devel
This post was edited on 2017-10-22, 02:30 by turnermm.
Avatar
pcouderc #3
Member since Sep 2016 · 12 posts · Location: Fuveau, France
Group memberships: Members
Show profile · Link to this post
I see. It is very logical.
I have to organise my wiki accordingly.
Thank you very much
Avatar
pcouderc #4
Member since Sep 2016 · 12 posts · Location: Fuveau, France
Group memberships: Members
Show profile · Link to this post
In reply to post #2
Than you, anyway I do  not understand why on my wiki https://wiki.couderc.eu/doku.php?id=public:a_perfect_btrfs… when you are not connected, you can "open" ->tol and read "customer", developpers"...

My ACL table (a bit simplified : reduced to * and tol:*) is :


Page/Catégorie    Utilisateur/Groupe    Autorisations1)   
*    @ALL     Aucune 
*    @user Lecture 
tol:*    @user Aucune 
tol:*    @tol     Effacer
This post was edited on 2017-10-23, 10:06 by pcouderc.
Avatar
pcouderc #5
Member since Sep 2016 · 12 posts · Location: Fuveau, France
Group memberships: Members
Show profile · Link to this post
Is my ACL table correct ?
Avatar
MartinR #6
Member since Jul 2015 · 153 posts · Location: UK
Group memberships: Members
Show profile · Link to this post
Possibly not.  ACLs are inherited so that you have:

 *      @ALL   Aucune
 *      @user  Lecture
(*      @tol   Lecture    Because @tol is a subset of @user)
(tol:*  @ALL   Aucune     Inherited from *)
 tol:   @user  Aucune
 tol:   @tol   Effacer

So that anyone who is not logged in can "Aucune" anything in tol:*
Avatar
pcouderc #7
Member since Sep 2016 · 12 posts · Location: Fuveau, France
Group memberships: Members
Show profile · Link to this post
Thank you, you are absolutely right, but try to go there (you will not be logged in) :
https://wiki.couderc.eu/doku.php?id=start&do=index

You see that you can open tol and see the titles of the "tol" pages : customers, developers, and even the list of developers...
I do not understand that, as you have "aucune"(=no) access right. Sure you cannot go inside the pages, you are right on that, but I you  like - please pardon me ! -  that you be not allowed to see the titles of the pages...
Avatar
MartinR #8
Member since Jul 2015 · 153 posts · Location: UK
Group memberships: Members
Show profile · Link to this post
OK, sorry.  I'd guessed that "Effacer" was delete and "Lecture" was edit but had assumed that "Aucune" was read.  I'm afraid I don't have a French dictionary at work and I last studied French back in '72.
Avatar
Digitalin #9
Member since Feb 2014 · 212 posts · Location: Uzès - France
Group memberships: Members
Show profile · Link to this post
Hi,

It is not a normal behavior. It seems for me you miss the pagename in your ACL (not sure at all, it is what it happens in your case). I have just created on a fresh install Dokuwiki :

====wiki de test===
[[:accueil | page d'accueil du site]]
[[:tol | nom de page de tol]]
[[:tol:accueil| page d'accueil de l'espace de noms  tol]]
[[:tol:customer| page  de tol customer]]
[[:tol:customers| page  de tol customers]]
[[:tol:developers| page  de tol customer]]

then the ACL

*       @ALL     Aucune 
accueil @ALL       Lecture 
tol       @tol      Écriture
tol:*       @tol      Effacer    

and the index site map :

    playground>
    tol>
    wiki>
    accueil

It is not possible to open tol (without being logged) but it appears on the site map. If this does not work for you, you have to deactivate all plugins et retry.

PS: I always rename :start (the startpage) for :accueil in the config manager as I am French :-)
Avatar
inhaianhsaigon #10
Member since Oct 2017 · 1 post
Group memberships: Members
Show profile · Link to this post
In reply to post #1
how google index your site?
This post was edited 4 times, last on 2018-05-03, 11:23 by inhaianhsaigon.
Avatar
pcouderc #11
Member since Sep 2016 · 12 posts · Location: Fuveau, France
Group memberships: Members
Show profile · Link to this post
In reply to post #9
@Digitalin Merci beaucoup !

The point is not that tol appears on the site map, but that tol:developpers appears in the map...

Does it appears on you site test ?


Or can you give me the URL of this site test ?


If it appears, it is a dokuwiki problem, else it is my ACL problem...
This post was edited 2 times, last on 2017-10-26, 09:06 by pcouderc.
Avatar
pcouderc #12
Member since Sep 2016 · 12 posts · Location: Fuveau, France
Group memberships: Members
Show profile · Link to this post
In reply to post #10
Quote by inhaianhsaigon:
Quote by pcouderc on 2017-10-22, 01:02:
Currently in my sitemap, everyone can see the sitemap.
I would like that only the user with correct ACL can see pages concerning her, and not pages for which she has not the ACL.
Is it possible ?
i think it's not possible
how google index your site?
I fear too it is not possible.
I have no idea of what google does on that....
Thank you.
This post was edited on 2017-10-26, 09:06 by pcouderc.
Avatar
Digitalin #13
Member since Feb 2014 · 212 posts · Location: Uzès - France
Group memberships: Members
Show profile · Link to this post
Bonjour,

My site test is local  but tol appears well and the content is NOT visible in the site map. When you click on the folder image, you have no access, which is the expected behavior. It is also true for playground and wiki namespaces.
I am sorry if this cannot help you more. It is not a DokuWiki problem (never seen since 2014 I begun with DokuWiki). Probably, a plugin or install issue.  Have you deactivated all plugins to see ? After, you can try to re-install if this  appears again.

Courage :-)

It seems I cannot attach files (a screen shot of acl .png, 150 ko) on this forum (probably not possible for members). In case if you need, you can write me and I will send you by mail.
Avatar
pcouderc #14
Member since Sep 2016 · 12 posts · Location: Fuveau, France
Group memberships: Members
Show profile · Link to this post
Merci beaucoup.
Please send it me to : pierre at couderc . eu
I am interested to compare with mine.
Mmm, please note that I did start with dokuwiki in 2007 ;)

Piere
Thomas W #15
Member since Feb 2019 · 6 posts
Group memberships: Members
Show profile · Link to this post
For anyone finding this old thread and having the problem that the entire namespace structure (except the page names) is publicly visible: There is the sneaky_index option. Although the documentation says "Not recommended except for paranoid people" I think it should be enabled by default for private wikis.
Close Smaller – Larger + Reply to this post:
Verification code: VeriCode Please enter the word from the image into the text field below. (Type the letters only, lower case is okay.)
Smileys: :-) ;-) :-D :-p :blush: :cool: :rolleyes: :huh: :-/ <_< :-( :'( :#: :scared: 8-( :nuts: :-O
Special characters:
Go to forum
Imprint
This board is powered by the Unclassified NewsBoard software, 20150713-dev, © 2003-2015 by Yves Goergen
Current time: 2019-09-17, 08:44:12 (UTC +02:00)