hey, if it's DbLocalizationProvider, then setting access rights for the AdminUI could be done via `AddDbLocalizationProviderAdminUI(c => ...)`. set `c.AccessPolicyOptions` to the desired restrictions.
It is DbLocalizationProvider and when I do the following:
services
.AddDbLocalizationProviderAdminUI(options =>
{
options.UseAvailableLanguageListFromStorage = true;
options.AccessPolicyOptions = (builder) => builder.AddRequirements(
new RolesAuthorizationRequirement(new[] { Roles.Administrators, "CmsAdmins" }));
})
.AddOptimizelyAdminUI();
It grants CMSAdmin access to everything, even the settings and even the ability to set access rights and also other plugins. How do I restrict so that only CMS Admins can access the DbLocalizationProviderAdminUI ??
Currently, in our solution, Localization can only be accessed if you belong to the Administrators group. How can we make it do the Localization be accessed by CMSAdmin role?
See Localization if you are an Administrator:
But do not see if you are CMSAdmin even though CMSAdmin have the access right of Administer:
Which add-on is this? This is not an out-of-the-box Optimizely add-on.
Maybe it's DbLocalizationProvider?