Remove content section access policy from GetAllLanguages endpoint. #15435 (#15450)

(cherry picked from commit cedfdcc9b2)
This commit is contained in:
Chris Fitz-Avon
2023-12-14 12:49:46 +00:00
committed by Bjarke Berg
parent fa9b0e4718
commit d5156aced2

View File

@@ -52,7 +52,6 @@ public class LanguageController : UmbracoAuthorizedJsonController
/// </summary>
/// <returns></returns>
[HttpGet]
[Authorize(Policy = AuthorizationPolicies.SectionAccessContent)]
public IEnumerable<Language>? GetAllLanguages()
{
IEnumerable<ILanguage> allLanguages = _localizationService.GetAllLanguages();