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?
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?
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
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
is working on a reply...