Go to the FreeLists Home Page Home Signup Help Login
 



[dokuwiki] || [Date Prev] [08-2006 Date Index] [Date Next] || [Thread Prev] [08-2006 Thread Index] [Thread Next]

[dokuwiki] Problem with auth_quickaclcheck()

  • From: "Frank" <frank.hinkel@xxxxxxxxx>
  • To: <dokuwiki@xxxxxxxxxxxxx>
  • Date: Tue, 8 Aug 2006 15:12:02 +0200
In my plugin "gcalendar" I can not check the wiki-pagesnames for
authentification. The sample code below generates the same values for all
the pages I try to check.

Asume "$pages" is set to array(':calendar:Frank',':calendar:Maike',)

      foreach($pages as $page)
        {
        $perm = auth_quickaclcheck($page);
        msg($_SERVER['REMOTE_USER']."=>PERM[$page]:$perm"); # Debug-Output
        if ($perm < AUTH_READ) continue; # to next page

          ... more code to read from the actual page here ...

      }

When I go to [[:calendar:Maike]] I get a "permission denied" message. But my
Script gets $perm=8 !?! So the page is included in the calendar although I
have no permission to see this page.

Any idea how to solve this problem ?

Frank

--
No virus found in this outgoing message. Kein Virus in ausgehender Email
gefunden.
Checked by AVG Free Edition.
Version: 7.1.394 / Virus Database: 268.10.7/411 - Release Date: 07.08.2006

-- 
DokuWiki mailing list - more info at
http://wiki.splitbrain.org/wiki:mailinglist




[ Home | Signup | Help | Login | Archives | Lists ]

All trademarks and copyrights within the FreeLists archives are owned by their respective owners.
Everything else ©2007 Avenir Technologies, LLC.