Is there a way to give a usergroup publish permission except for one doctype (with 6000> nodes) in Umbraco 8? All the other nodes the user in this group can publish. It's no problem if i need to do something in code.
Hi
I would do this by hooking into the content service publishing event and if the user is not in the required group cancel the event. You should be able to find the required code in this forum, documentation or elsewhere based on the key words I’ve given you there.
Thank you very much for your reply. I'm aware of the events. But i don't only want to block it, i want the backoffice to respond correctly. So that the publish button isn't visible in the context menu and in the right bottom corner of the edit screen.
Umbraco Publish permission based on doctype
Hi,
Is there a way to give a usergroup publish permission except for one doctype (with 6000> nodes) in Umbraco 8? All the other nodes the user in this group can publish. It's no problem if i need to do something in code.
Hi I would do this by hooking into the content service publishing event and if the user is not in the required group cancel the event. You should be able to find the required code in this forum, documentation or elsewhere based on the key words I’ve given you there.
Cheers
Paul
Hi Paul,
Thank you very much for your reply. I'm aware of the events. But i don't only want to block it, i want the backoffice to respond correctly. So that the publish button isn't visible in the context menu and in the right bottom corner of the edit screen.
Cheers, Dennis
Hi Dennis,
Don't know if this will work in V8, but have a look at https://our.umbraco.com/Documentation/Reference/Events/EditorModel-Events/
Maybe you can remove publish from the allowed actions of the ContentItemDisplay model : https://our.umbraco.com/Documentation/Reference/Events/EditorModel-Events/#contentitemdisplay
In V7 I was able to remove the unpublish button for everybody that was not in admin with the following bit of code
Dave
Hi Dave,
Thank you very much! This is exactly what I was looking for. It works great also in v8.
Dennis
is working on a reply...