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.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

Data Model Questions /

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

Decorate Individual Member Group


Go to End


3 Posts   1689 Views

Avatar
zenmonkey

Community Member, 545 Posts

11 December 2009 at 10:08am

Is it possible to add a decorator only to members in a certain group?

Avatar
Willr

Forum Moderator, 5523 Posts

11 December 2009 at 8:20pm

AFAIK not easily - eg if you decorate a member 3 times (1 for each group) each member is going to have the sum of all 3 decorated files. As for front end / functions you could implement things like group permissions to determine if they can run sections of the code / hide functions from members without that permission.

Avatar
zenmonkey

Community Member, 545 Posts

12 December 2009 at 3:25am

Hmm, I was really asking because the Member interface already has an export function. May be better to try to add the export function to another dataobject. This is more an idea I'm playing with than a project requirement.

Thanks