Gruber
Gruber

Reputation: 4568

Disable inaccessible links in Dokuwiki?

Is there any way in Dokuwiki to make links to inaccessible articles (due to insufficient access rights) appear disabled?

I would prefer such a link to be gray and inactive, with perhaps a lock icon, rather than having the user getting an error message when the link is clicked.

Upvotes: 0

Views: 338

Answers (2)

Rainbow Spike
Rainbow Spike

Reputation: 1

Hmm, something like

global $ID;
if ( auth_quickaclcheck ( $id ) < AUTH_READ ){
  ...here add .acldisable to $id;
  ...here add class "disabled" to $id;
}

in core link renderer

and in CSS add .acldisable { color: gray; }

Upvotes: -1

Andreas Gohr
Andreas Gohr

Reputation: 4945

This would basically require to disable the cache for each and every page and make your wiki much slower. So I guess the answer is no.

Upvotes: 1

Related Questions