Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

Customising the CMS

$member->inGroup and renaming a Member Group


Reply

3 Posts   673 Views

Avatar
ivo

6 January 2012 at 11:02pm Community Member, 19 Posts

Can somebody confirm that after renaming a Member Group the inGroup method with the Group Title still checks on the old name?

I renamed a group from 'Dealer' to 'Retailer' in the Security Tab and
if( $member->inGroup('Retailer') )
returns false
if( $member->inGroup('Dealer') )
returns true

Seemed that in the Groups Table the Code field wasnt updated.

I updated it manually and then it works.
Feels like a Bug, doesnt it?

Avatar
swaiba

7 January 2012 at 12:35am (Last edited: 7 January 2012 10:42pm), Forum Moderator, 1796 Posts

If it's a bug (or you think it is) best place is open.silverstripe.org
You are unlikely to get a response from an SS dev here Edit but so you did from Willr!

Avatar
Willr

7 January 2012 at 9:05pm Forum Moderator, 5511 Posts

See my comment on the ticket - http://open.silverstripe.org/ticket/6829#comment:1