5121 Posts in 1527 Topics by 1119 members
|Go to End|
15 March 2010 at 4:34am
Is it possible to prevent users from adding new Members to Security Groups via the Security Admin? That is, if the Member doesn't already exist, the user is prevented or given an error when they try to add them to a Group? For the site I'm working on I'm decorating Member and managing it via ModelAdmin so I'd rather users couldn't also add Members via the Security Admin accidentally/on-purpose.
13 April 2010 at 8:33pm
Not directly... You could extend MemberTableField->addToGroup() to check for a customized Member->canCreate() callback.
14 April 2010 at 4:47pm
Thanks for getting back to me on this. The context for my query is in this post here http://www.silverstripe.org/customising-the-cms/show/282214 - I'd be very keen to hear your feedback on it?
I'll have a good look at MemberTableField and see what I can do. Your suggestion sounds like a pretty neat way to do it.
|Go to Top|