Copied to clipboard

Flag this post as spam?

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


  • mc2 13 posts 74 karma points
    Aug 16, 2021 @ 09:50
    mc2
    0

    GetAllowedChildren - Customize for user groups? Restricting document types for user groups.

    Hi! Is it possible to customize what I get from "GetAllowedChildren", for example I want to restrict certain user group from creating certain doc type? Or is there any other way to achieve that?

  • Marc Goodson 2157 posts 14435 karma points MVP 9x c-trib
    Aug 18, 2021 @ 19:10
    Marc Goodson
    0

    Hi Marciscaupjonaks

    This blog post is doing a similar thing

    http://tooorangey.co.uk/posts/umbraco-v8-variants-and-limiting-editor-access-by-language-an-adventure-story/

    (the bit at the end)

    by hijacking the angularjs request to GetAllLanguages to restrict by UserGroup in a multi language site, that might give some inspiration.

    And there is an open PR to the core, describing adding the kind of functionality you are I think talking about:

    https://github.com/umbraco/Umbraco-CMS/pull/9595

    Not sure if that helps though

    regards

    marc

  • Patrick de Mooij 73 posts 623 karma points MVP 3x c-trib
    Aug 19, 2021 @ 08:05
    Patrick de Mooij
    1

    Hi,

    There is also this PR that would give you the ability to customize this a lot more: https://github.com/umbraco/Umbraco-CMS/pull/9906

    Shannon also suggested using a webapi global filter to catch the response and update it with new values.

    Kind regards, Patrick

  • 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