Quantcast
Channel: DokuWiki
Viewing all articles
Browse latest Browse all 25522

plugin:ondeniedlogin

$
0
0
1411687228current
Line 1:Line 1:
-====== ondeniedlogin plugin ======+====== ondeniedlogin Plugin ======
  
 ---- plugin ---- ---- plugin ----
Line 70:Line 70:
 This adds the following functionality to this plugin: When your ACLs allow someone to see some pages but maybe not the start page, this helps him because he gets some search hits instead of "Permission denied"... This adds the following functionality to this plugin: When your ACLs allow someone to see some pages but maybe not the start page, this helps him because he gets some search hits instead of "Permission denied"...
  
-<code php ondenied-search.patch>+<code diff ondenied-search.patch>
 --- ondeniedlogin/action.php    2011-08-26 16:47:00.000000000 +0200 --- ondeniedlogin/action.php    2011-08-26 16:47:00.000000000 +0200
 +++ ondeniedlogin/action.php    2011-08-26 16:54:23.000000000 +0200 +++ ondeniedlogin/action.php    2011-08-26 16:54:23.000000000 +0200
Line 87:Line 87:
 ==== Use Earlier Event ==== ==== Use Earlier Event ====
  
-Some templates (e.g. [[tpl:dokuwiki]]) set html classes on outer elements describing the action.  The TPL_ACT_RENDER event is too late to alter this.  The change below switches to use [[devel:event:ACTION_HEADERS_SEND]], so immediately after DokuWiki sends the 403 permission denied header.+Some templates (e.g. [[template:dokuwiki]]) set html classes on outer elements describing the action.  The TPL_ACT_RENDER event is too late to alter this.  The change below switches to use [[devel:event:ACTION_HEADERS_SEND]], so immediately after DokuWiki sends the 403 permission denied header.
  
 <code php> <code php>
       $controller->register_hook('ACTION_HEADERS_SEND', 'AFTER',  $this, 'ondeniedlogin');       $controller->register_hook('ACTION_HEADERS_SEND', 'AFTER',  $this, 'ondeniedlogin');
 </code> </code>

Viewing all articles
Browse latest Browse all 25522

Latest Images

Trending Articles



Latest Images