[pmwiki-users] identify current authorization level
H. Fox
haganfox at users.sourceforge.net
Thu Jul 27 16:19:25 CDT 2006
On 7/27/06, Henrik Bechmann <henrik at bechmannsoftware.com> wrote:
> Hagan,
[...]
> So it looks like I'll be able to call this function from within my PHP
> code to decide on layout, BUT...
>
> ...there is one more problem.
>
> I want isEditAuthorized to return false after action=logout on the page,
> so that the author can revert to the user page layout (no author menus,
> etc). But action=logout apparently does not clear the [=auth][edit]
> value until the next attempt to login (caching?).
>
> Is there some way to detect that a logout has taken place?
Try
if ($action == 'logout') {
## A logout has taken place.
}
Maybe this would cause the page to reload?:
if ($action == 'logout') {
header("Location: $ScriptUrl");
}
Hagan
More information about the pmwiki-users
mailing list