[dokuwiki] $INFO['perm'] not cleared on logout

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

Other related posts: