I just started to use cockpit ( it’s amazing !!! THX ).
I’m using Singeltons. I want to have n languages supported, but I want not all users or groups to have access to all languages. A user or a group should be limited to a subset of language. Is this possible? Thank you in advance for any help.
There is no default option, to set such a permission.
Translated fields are internally stored with language suffixes. If your localized field name is title, there will be “hidden” fields like title_de, title_fr etc.
Do you need to limit the read access or is it enough to limit the write access?
You can use the event system to check against custom rules. Create a file /config/bootstrap.php.
$app->on('singleton.saveData.before.singleton_name', function($singleton, &$data) {
// if user group is wrong
// than unset fields with language suffix, e. g. "title_de"
});