I've got a user which can see about 40 nodes of 4 different document types. What I would like is that the user can edit all the nodes of document type 1 and 2, but can only view the nodes of document type 3 and 4. How can I do this?
it's possible to some extent, but requires some manual intervention. you could - for this specific user - revoke permissions for some nodes. Go to 'Users' section, expand the 'User Permissions' node, select the user for which to revoke the permission, select the node(s) and revoke permissions for node(s) the user should not be able to update. Does work well if those nodes with that specific document type are 'grouped'.
I'm not sure if it can be generalized (eg. by creating a new user type)
If that's not a viable option, look into the event model to cancel out save/publish on nodes for that specific document type.
Guess I'll need to use the event model. I've got the following situation.
I create a node with an admin user. This node is copied to another location in the content tree. Another user with limited rights (and a lower start node in the content tree) can view this item and sort it, but I don't want him to edit it. I don't think this can be done setting the user permissions since I would need to set the permissions during copying the node.
I might also be able to solve my problem if a user can only update content he created himself. Can this be done using the permissions or do I also need to make my own check in the events?
Don't think there's much info available, but if you don't mind fiddling with the code, start looking into the /presentation/umbraco/users directory. Start with the PermissionEditor page and codebehind, it's there where all the magic happens.
Class that deals with user permissions is called UserPermissions.cs (Dohh)
Thanks Dirk! First I'm going to try if it's possible if a user can only save data from nodes he created. If this is not possible I'll look into the user permissions. If I got it working I'll post some examples here.
HQ had done an example of disabling nodes that are checked-out, so, there may be an option there to attach to the tree render events and disable the item from being click-able?
They may have also done a custom content tree to enable that functionality...
Umbraco users and document types.
Hello,
I've got a user which can see about 40 nodes of 4 different document types. What I would like is that the user can edit all the nodes of document type 1 and 2, but can only view the nodes of document type 3 and 4. How can I do this?
Jeroen,
it's possible to some extent, but requires some manual intervention. you could - for this specific user - revoke permissions for some nodes. Go to 'Users' section, expand the 'User Permissions' node, select the user for which to revoke the permission, select the node(s) and revoke permissions for node(s) the user should not be able to update. Does work well if those nodes with that specific document type are 'grouped'.
I'm not sure if it can be generalized (eg. by creating a new user type)
If that's not a viable option, look into the event model to cancel out save/publish on nodes for that specific document type.
Hope this helps.
Regards,
/Dirk
Guess I'll need to use the event model. I've got the following situation.
I create a node with an admin user. This node is copied to another location in the content tree. Another user with limited rights (and a lower start node in the content tree) can view this item and sort it, but I don't want him to edit it. I don't think this can be done setting the user permissions since I would need to set the permissions during copying the node.
Thanks!
I might also be able to solve my problem if a user can only update content he created himself. Can this be done using the permissions or do I also need to make my own check in the events?
You could only do this by having events which assign/ deassign permissions for the node during the After_New event.
Is there some more information available about permissions? I don't know how I can set those programmaticly.
Don't think there's much info available, but if you don't mind fiddling with the code, start looking into the /presentation/umbraco/users directory. Start with the PermissionEditor page and codebehind, it's there where all the magic happens.
Class that deals with user permissions is called UserPermissions.cs (Dohh)
Hope this helps.
Regards,
/Dirk
Thanks Dirk! First I'm going to try if it's possible if a user can only save data from nodes he created. If this is not possible I'll look into the user permissions. If I got it working I'll post some examples here.
HQ had done an example of disabling nodes that are checked-out, so, there may be an option there to attach to the tree render events and disable the item from being click-able?
They may have also done a custom content tree to enable that functionality...
In my last post of the following topic you can see how I solved my problem:
http://our.umbraco.org/forum/using/ui-questions/5493-Undelete-in-media-section-?p=2
is working on a reply...