Copied to clipboard

Flag this post as spam?

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


  • Craig Cronin 304 posts 503 karma points
    Oct 03, 2012 @ 19:42
    Craig Cronin
    0

    Security of media item

    Hi Ismail,

    How does the package handle media items that need to be securely protected?  If the item was placed on a page then i could secure the page and ultimately the document, but if i'm accessing the media item directly I bypass the security?

  • Ismail Mayat 4511 posts 10092 karma points MVP 2x admin c-trib
    Oct 04, 2012 @ 10:52
    Ismail Mayat
    0

    Craig,

    You have a 2 options.

    Craig,

    The package does not handle secure items as such however you have a number of options:

    1. Use the paid package media protect and then protect your media files see http://our.umbraco.org/projects/website-utilities/media-protect

    2. Add checkbox call it secure and set to true for secure items

    In both cases implement GatheringNode data event for the media indexer and then check if the media is protected for 1 not sure how you would get the status of the file but im sure there is api or you can make call into database etc to get the file status for 2 look for true value on media item. Inject the value into the index into new field call it Secure? Also if using 1 you should be able to inject in groups who have access.

    Next step. When building your query check if user is logged in if so get his groups and then use that as a filter. If not logged in then update the query so that all protected items are excluded.

    Regards

     

    Ismail

  • Craig Cronin 304 posts 503 karma points
    Oct 04, 2012 @ 13:39
    Craig Cronin
    0

    Thanks Ismail,

    I think between both packages I do have a solution and an option for my client.  Really appreciate your help and the speedy response.

Please Sign in or register to post replies

Write your reply to:

Draft