ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Ristricting access to a specific Channel entry to individual members

January 16, 2011 7:00pm

Subscribe [4]
  • #1 / Jan 16, 2011 7:00pm

    Fruit Studios

    20 posts

    Hi There,

    I have just started using EE2 and loving it, my latest project requires access to certain content be restricted to a specific site member.

    I’m not entirely sure how best to approach this and whether EE is capable of doing this out of the box or might require an add on to help out.

    I was looking to add the content as a channel entry, firstly is it possible to restrict access to a channel entry to a specific logged in member?

    There would also be other channels entries that will be related to the main channel (A Parent the main entry, with multiple children records, its for a nursery school!)

    I’m not sure i’m approaching this is the best way possible and any advise would be much appreciated??

    I you need any more info, or this post is not in the correct forum, please let me know.

    NB I have also posted in another area of this forum, but have been told to post this specific question here. Original Post: http://ellislab.com/forums/viewthread/178384/

    Many thanks in advance.

    Sam

  • #2 / Jan 17, 2011 9:50am

    Sue Crocker

    26054 posts

    Hi, Sam. You’d have to create a member group for just that single person, and a channel for just that single person. But there are other ways of approaching this.

    What I did was create a entry for the person in question, and set EE to only allow them access to the entries they are the author of.

    See the screen shots. The only channel I let this particular group use in Sample.

    Does that help?

  • #3 / Jan 19, 2011 11:02am

    Fruit Studios

    20 posts

    Thanks for your reply.

    I was looking at using the author technique to restrict access to each entry but am unsure it will be 100% effective as it will not always be the member who opens/ creates the channel??

    I have also been chatting with Ryan Irelan from Mijingo (he has created an exellent set of learning EE tutorials) who offered the following advice, that look it will do the trick:

    Yeah, if you want them to log in you need to have at least one of the member types using the Member module (this is assuming you will not be writing custom add-ons to make this work but just using the native EE functionality).

    Since it’s the parents logging in you could make their accounts the members and then the children has entries in a channel. Then you could assign the parents to a children entry using an add-on called [Member List Custom Field](http://devot-ee.com/add-ons/member-list-custom-field/).

    Following on from Ryan’s feedback, I do have a couple of queries, perhaps someone here may be able to add their thoughts?

    1. The Member list fieldtype seems like it will look after the relationship between member account and a channel entry. I do have alot of additional fields that I need to add to an account, I was thinking do this as an entry in a channel that is linked to a member account, or do you think it would be better to add this data as custom member fields??

    2. Also is there a good member add-on that might help with all this, I have found lots of member/user add ons which seem to extend/ improve the functionality of the EE members module??

    Many thanks,

    Sam

  • #4 / Jan 20, 2011 4:27am

    Ingmar

    29245 posts

    ... as it will not always be the member who opens/ creates the channel??

    I’m not entirely sure what you mean by that. As Sue said, all authentication in EE is group-based. If you have an entry that’s authored by a certain group and you set up appropriate permissions no users not belonging to that group can edit that entry.

    I do have alot of additional fields that I need to add to an account

    Take a look at custom member profile fields.

    I was thinking do this as an entry in a channel that is linked to a member account

    That should work as well, of course.

    Also is there a good member add-on that might help with all this, I have found lots of member/user add ons which seem to extend/ improve the functionality of the EE members module?

    There are a number, yes. Unfortunately we won’t be able to recommend a third-party add-on. Perhaps you might want to ask for some user input in the CodeShare Corner or similar?

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases