Copied to clipboard

Flag this post as spam?

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


  • Jeroen Breuer 4909 posts 12266 karma points MVP 5x admin c-trib
    Dec 15, 2009 @ 13:59
    Jeroen Breuer
    0

    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?

  • Dirk De Grave 4541 posts 6021 karma points MVP 3x admin c-trib
    Dec 15, 2009 @ 14:57
    Dirk De Grave
    0

    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

     

     

  • Jeroen Breuer 4909 posts 12266 karma points MVP 5x admin c-trib
    Dec 15, 2009 @ 15:18
    Jeroen Breuer
    0

    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!

  • Jeroen Breuer 4909 posts 12266 karma points MVP 5x admin c-trib
    Dec 15, 2009 @ 16:53
    Jeroen Breuer
    0

    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?

  • Aaron Powell 1708 posts 3046 karma points c-trib
    Dec 15, 2009 @ 22:36
    Aaron Powell
    0

    You could only do this by having events which assign/ deassign permissions for the node during the After_New event.

  • Jeroen Breuer 4909 posts 12266 karma points MVP 5x admin c-trib
    Dec 16, 2009 @ 08:44
    Jeroen Breuer
    0

    Is there some more information available about permissions? I don't know how I can set those programmaticly.

  • Dirk De Grave 4541 posts 6021 karma points MVP 3x admin c-trib
    Dec 16, 2009 @ 09:40
    Dirk De Grave
    0

    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

     

  • Jeroen Breuer 4909 posts 12266 karma points MVP 5x admin c-trib
    Dec 16, 2009 @ 09:43
    Jeroen Breuer
    1

    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.

  • Casey Neehouse 1339 posts 483 karma points MVP 2x admin
    Dec 16, 2009 @ 10:57
    Casey Neehouse
    0

    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...

     

  • Jeroen Breuer 4909 posts 12266 karma points MVP 5x admin c-trib
    Dec 18, 2009 @ 09:22
    Jeroen Breuer
    0

    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

Please Sign in or register to post replies

Write your reply to:

Draft