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.

Assigning member-only posts and files to specific members

February 06, 2011 10:52am

Subscribe [2]
  • #1 / Feb 06, 2011 10:52am

    John St-Amand

    865 posts

    Hi all - I’m looking for an answer to two questions:

    1) Can it be done?
    2) and if yes, what’s the approach that you would recommend?

    Here’s the scenario:

    Client would like to have a members-only area wherein a given member can get access to posts and downloadable files (mainly PDFs).  Thing is, the client wants to assign these privileges based on the user and not the group of which they are a member - the idea being that there may be multiple employees of a company that they’re sharing these files with, but some files are for higher-up eyes only.  That raises two glaring issues:

    1) Is there a feasible way in EE to assign permissions to a given posting on a user-by-user basis via the CP (just the ability to see the post, no editing, etc)?
    2) And related to this, is there a feasible way for EE to secure the uploaded file itself to the assigned user(s) - even on a sessional basis?

    I just want to have a single template verify that the user is logged in, and only show them the postings that have been assigned to them.  What I was picturing was a ticklist or a playa-style drag and drop field within the custom field group for these postings from which the authorized members could be selected.  And there would, of course, be a file field for the PDF file related to the posting.

    So I’m thinking this is a bit out of the box with EE but there are some plugins that seems to touch on this is a little but may not be meant for it.  Anyone have some suggestions?  Surely someone in the EE community has faced user-specific permissions assignment needs before.  I certainly don’t want to have to create a member group per user.

    Thoughts?

    Thanks!

  • #2 / Feb 06, 2011 12:45pm

    adrake9

    57 posts

    http://devot-ee.com/add-ons/member-list-custom-field/

    This might help assign the post to a specific user and in your template you can do a conditional to see if that custom field matches the current user. I have had this problem before. This really only deals with a one-to-one issue. Each post gets assigned to a specific user. I then used a matrix field to add entries within the post using the columns   title |  text |  image (not required)  |  file url (for pdf download)  | etc.,

    If your doing non-traditional types of posts, this might work.

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

ExpressionEngine News!

#eecms, #events, #releases