Copied to clipboard

Flag this post as spam?

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


  • Kevon K. Hayes 255 posts 281 karma points
    Aug 03, 2010 @ 22:57
    Kevon K. Hayes
    0

    Prevent users from Creating Specific Doc Types

    UMB 4.5.1 | WIN SVR 2008 STD | IIS 7

    Is is possible to prevent specific users from creating a new document from a specific doctype?  Can I utilize the OnSave/OnPublish Events to check for the type of document user is publishing?

  • Tim 1193 posts 2675 karma points MVP 4x c-trib
    Aug 04, 2010 @ 12:21
    Tim
    0

    Sadly, out of the box, you can only limit doctypes by the parent page, not by specific user.

    I think your idea about the onsave/onpublish events is on the right track, you'd need to check there and cancel the action if the doctype isn't allowed.

    The other thing you could do is download the source, and create your own version of the document add dialog page, implementing your custom logic to remove the forbidden doc types from the dropdown list. The only issue with this is that you'll have to re-apply your changes after updates to Umbraco, as it'll get overwritten each time!

Please Sign in or register to post replies

Write your reply to:

Draft