[pmwiki-devel] Group management system...
Patrick R. Michaud
pmichaud at pobox.com
Wed May 9 10:58:08 CDT 2007
On Wed, May 09, 2007 at 09:11:44AM -0400, The Editor wrote:
> Below are the answers I found. I hope Pm or someone can verify...
>
> On 5/4/07, The Editor <editor at fast.st> wrote:
> > 1) When a person logs in, are all group memberships ascertained at
> > that point and stored as a session variable for future reference, or
> > checked each time a group membership check is raised. I'm assuming
> > the first as it seems more efficient.
>
> It looks like the answer here is it's implemented when they login. So
> if you change their group memberships after they have logged in, they
> will have to logout/login to get the change.
Correct.
> > 3) Could a recipe simply add values (from whichever source it chooses)
> > to some kind of PmWiki array so they are checked automatically when
> > they login? If so, how? If not, can it just manually insert those
> > values into the PmWiki login session variable (ie, via a custom login
> > form that checks its own sources for membership lists)?
>
> >From the looks of things if I set up my own mechanism for verifying
> individuals are members of a group when they login, I just need to
> assign the following variable to mimic what AuthUser does:
>
> $_SESSION['authid']['authlist']['@mygroup'] = true;
Better might be to do it the way authuser.php does -- namely:
SessionAuth($pagename, array('authlist' => array('@mygroup' => 1)));
Pm
More information about the pmwiki-devel
mailing list