Repository navigation
Managing Variant Editor Permissions #10
marcemarc
started this conversation in
Share Your Hack
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
I'm not sure this is the 'right format' for understanding the hack... but I wrote a blog post here:
http://tooorangey.co.uk/posts/umbraco-v8-variants-and-limiting-editor-access-by-language-an-adventure-story/
Basically I'm making it possible to have User Groups that define which language variant a particular user is able to edit, and making the default language 'read only', but whilst most of that is achievable via the EditorModelEventManager SendingContentModel c# event... the dropdown where people can switch languages didn't have an extension point :-(
which is where I hooked into GetAllLanguages
to then 'filter' by the current editor's User Group permissions to limit the list of options - also then works for the dialogs for publishing too!
All reactions