[dokuwiki] $INFO['perm'] not cleared on logout
- From: Christopher Arndt <chris.arndt@xxxxxx>
- To: dokuwiki@xxxxxxxxxxxxx
- Date: Fri, 30 Sep 2005 02:39:11 +0100
When I log out from my DokuWiki (2009-09-22), in my template code
$INFO['perm'] is still set to the permissions of the user that was logged in.
So when I have this somwehwere in my footer:
<?php ptln('Permissions: ' . hsc($INFO['perm'])); ?>
it would still print "Permissions: 255" when I logged out from my superuser
account. The same with normal users.
Is this intended behaviour? Do I have to check _REQUEST['do'] != 'logout' each
time I use $INFO['perm']? (Looking at $ACT doesn't help, it will already show
'login'.)
Or should I report this as a bug?
Chris
- Follow-Ups:
- [dokuwiki] Re: $INFO['perm'] not cleared on logout
- From: Andreas Gohr
Other related posts:
- » [dokuwiki] $INFO['perm'] not cleared on logout
- » [dokuwiki] Re: $INFO['perm'] not cleared on logout
- » [dokuwiki] Re: $INFO['perm'] not cleared on logout
- » [dokuwiki] Re: $INFO['perm'] not cleared on logout
- » [dokuwiki] Re: $INFO['perm'] not cleared on logout
- [dokuwiki] Re: $INFO['perm'] not cleared on logout
- From: Andreas Gohr