17488 Posts in 4473 Topics by 1978 members
|
Page:
1
|
Go to End | |
| Author | Topic: | 2666 Views |
-
Member Group codes

17 July 2007 at 11:26am
Hi, I'm using 2.0.2b and I noticed that when I create new user groups, the group's 'code' is always set to 'new-group', no matter what the group's name is.
Does this normally happen or have I broken something? I noticed Group::setCode() seems to do what we need, but it's not called anywhere.
-
Re: Member Group codes

18 July 2007 at 9:43am
Hmm this appears to be a bug. I think it acts like this so that when the a module like the forum makes a group called "forum-members", the user doesn't accidently change it. Maybe if a seperate field for forum code, that doesn't automatically change when the title is changed is a good idea.
-
Re: Member Group codes

18 July 2007 at 9:51am
What about some kind of flag that tells it whether it can change the code? Set something like EditCode = false (or LockCode = true, whichever feels right) in the module so the user can't change it.
-
Re: Member Group codes

27 September 2007 at 12:58am
Any changes on this?
I came across the same problem, see thread:
http://www.silverstripe.com/silverstripe-development/flat/5921 -
Re: Member Group codes

29 October 2007 at 4:14pm
Instead of group Codes, use Permissions. Group.Code is deprecated.
-
Re: Member Group codes

29 October 2007 at 9:58pm Last edited: 29 October 2007 10:45pm
Ok, but what about groups that don't have any permissions?
If you create a frontend usergroup you can't give it any permissions in the cms, so there's no permissions to be checked for.
And it's not possible to set Permissions like 'ViewPage' or something in the security section, and having to add it manually to the db seems odd.The AddToGroupByName method seems very useful, if the 'code' field would follow the title field.
| 2666 Views | ||
|
Page:
1
|
Go to Top |




