Copied to clipboard

Flag this post as spam?

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


  • Gordon Saxby 1347 posts 1608 karma points
    Apr 07, 2015 @ 14:48
    Gordon Saxby
    0

    ReplaceContentPermissions not working without IISRESET

    I am changing the User permissions on a node with

    _contentService.ReplaceContentPermissions(permSet);

     

    but the changes do not seem to take effect unless I do an IISRESET ... which doesn't seem right! What else do I need to do?

    Also, I have tried doing the same via the Umbraco Admin and the changes do not seem to take effect!?

    Umbraco version 7.2.1

  • Gordon Saxby 1347 posts 1608 karma points
    Apr 07, 2015 @ 16:21
    Gordon Saxby
    0

    I have also tried 

    _userService.ReplaceUserPermissions(userId, perms, pageId);

    but that doesn't refresh / show without an IISRESET either.

  • Gordon Saxby 1347 posts 1608 karma points
    Apr 08, 2015 @ 09:24
    Gordon Saxby
    0

    OK, further testing shows that the permissions do get added to / removed from a particular node, because using either right-mouse-click or the "Actions" menu shows that. However, the green "Save and Publish" button does not generally appear.

    I have tried testing in a new installation of Firefox and have cleared the entire cache between / during tests and it doesn't seem to help - the green button sometimes appears !?

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies