Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Sean Dooley 289 posts 528 karma points
    Sep 02, 2011 @ 11:14
    Sean Dooley
    0

    Member permissions on a document by document basis

    I'm looking for a bit of guidance on the following scenario.

    Currently developing a site using the Umbraco membership whereby a member has access to one or many documents and its associated media (images, video, pdf, etc). The documents and media are not static, they are created when they are needed.

    One idea is to create a separate Member Group for each Document and its associated media. For example, Document A will have a Member Group called Group A, and Document B will have a Member Group called Group B. Members who need access to Document A will be assigned to Group A, and members who need access to Document B will be assigned to Group B.

    Is this a suitable approach?

    Any recommendations on other ideas are welcome.

    Thanks in advance for any advice.

  • Richard Soeteman 4053 posts 12926 karma points MVP 2x
    Sep 02, 2011 @ 21:34
    Richard Soeteman
    0

    HI Sean,

    I think youy get a lot of groups in this case. Isn't it better to create folders and add the nodes in these folders and assign the groups to those folders then you not have  that many groups to maintain I guess.

    One remark you mention you also want to protect media items. Not to plug my own package but just want you to know that if someone knows the url they will still be public when a user enters the url in a browser. I.ve build Media Protect that protects the media files in the exact same way as you protect content. Might be worth to check that out http://our.umbraco.org/projects/website-utilities/media-protect

    Cheers,

    Richard

  • Sean Dooley 289 posts 528 karma points
    Sep 05, 2011 @ 10:49
    Sean Dooley
    0

    Hi Richard

    I am planning on using your Media Protect package to protect the media files in the site but it will be with a MySQL database, apart from logging to the database, seems to work fine with MySQL on a localhost.

    Will your suggestion of creating folders, adding nodes in these folders and then assigning groups to those folders not result in just as many groups to maintain? I will still need to create a Member Group for each folder due to the restriction requirements of the site. Hopefully the example tree structure below will help visualize the requirements

    Content Tree
    > Home
    > About Us
    > Members Area (page displays clients associated projects) (Client access only)
    > Project A (page displays associated protected media) (Group A access only)
    > Project B (page displays associated protected media) (Group B access only)
    > Contact 

    Media Tree
    > Other
    > Members Media
    > Media Item 1 (Project/Group A access only)
    > Media Item 2 (Project/Group B access only)
    > Media Item 3 (Group A and B access only)

    Hope the above example tree structure makes sense

  • Richard Soeteman 4053 posts 12926 karma points MVP 2x
    Sep 05, 2011 @ 11:17
    Richard Soeteman
    0

    Hi Sean,

    MediaProtect will work with Mysql indeed. Only thing that doesn't work is the table creation script in the package. I will post one on my weblog www.richardsoeteman.net  later this week.

    Think your structure was already ok last week. Yes you get a lot of groups but they need to be unique for each project I guess? Same goes for media folders. Maybe you can use the event system to create roles and media folders for the project once a new project page is created?

    Cheers,

    Richard

     

     

     

  • Steve Smith 75 posts 158 karma points
    Sep 06, 2011 @ 09:50
    Steve Smith
    0

    Hi Richard,

    I would also be interested in getting MediaProtect working on MySQL, as a I have a project that needs protection of media files, on an installation of Umbraco running MySQL as the back-end DB.  Look forward to the table creation script :-)

    Cheers,

    Steve.

     

  • Richard Soeteman 4053 posts 12926 karma points MVP 2x
    Sep 06, 2011 @ 16:39
    Richard Soeteman
    0

    Hi Sean and Steve,

    I've just put the MySql generate script on my weblog. Once you've added the table Media Protect should work fine on MySql.

    Cheers,

    Richard

Please Sign in or register to post replies

Write your reply to:

Draft