You are right Kevin there was a bug. I've been gradually using the
BOLTingroup function in all the other places that previously had its
own routine. In 3.2.7 I upgraded the BOLTFmemberships function. But it
has two problems:

1) A typo. '$groupname' should be "$groupname". Oops...
2) The other though is more tricky. The BOLTingroup function checks
using the current membership settings, whereas in this particularly
case we want to recheck and potentially reset the memberships. This is
also the function used for logins to set memberships. So to fix this I
had to make a slight change in a couple places to get it working. I'll
try and get a release out later today, but if it is urgent, I did
this:

functions.php line 464...  Notice a new third parameter is set to
false, indicating don't use current membership information.

        if (BOLTingroup("$groupname", $BOLTid, false))
$_SESSION[$BOLTfieldKey]['GROUP'][$groupname] = 1;
        }
        if (BOLTingroup('admin', $BOLTid, false))
$_SESSION[$BOLTfieldKey]['GROUP']['admin'] = 1;

then in engine.php, line 1333 and 1338 I have this, to say ignore
current settings if $current is false:

function BOLTingroup($group, $id='', $current=true) {
...
        if ($id == $BOLTid && $current) return (strpos(",$BOLTmemberships,",
",$group,") !== false);

With this it should get back to working. Sorry for this, Kevin...  It
will be good to get to a stable and cutting edge release system.   :)

Cheers,
Dan


On Tue, Oct 20, 2009 at 12:29 PM, Kevin <[email protected]> wrote:
> Reverting back to 3.2.4 works memberships work again.
>
> I think something is broken with memberships in 3.2.7
>
> Didn't notice until last night when on one site the person said they didn't
> see content they used to see.  Since I am as an admin most of the time,
> never noticed.
>
> This morning, I had someone trying to upload and realized I had not given
> them permission.  When I gave them permission and changed access to the
> section he was in, he lost all access.  Turns out he had access by default
> as just logged in (member access) before and was not being seen as a member
> of a group.
>
>
> On Tue, Oct 20, 2009 at 8:18 AM, Kevin <[email protected]> wrote:
>>
>> Is there a problem with memberships?
>>
>> It seems that people who could get into areas now can't.
>>
>> They are listed in the group file, but when I added {memberships} in the
>> footer and have them log in, all they show up in is guest,member and none of
>> the groups they are physically in.
>>
>> 3.2.7
>>
>>
>
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"BoltWire" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/boltwire?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to