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 /

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo, swaiba

$member->inGroup and renaming a Member Group

Go to End

3 Posts   1390 Views


Community Member, 19 Posts

6 January 2012 at 11:02pm

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?


Forum Moderator, 1899 Posts

7 January 2012 at 12:35am

Edited: 07/01/2012 10:42pm

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


Forum Moderator, 5523 Posts

7 January 2012 at 9:05pm