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?
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!
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?
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!
is working on a reply...