Commit 6f63c24f authored by damjan's avatar damjan

[BUGFIX] en is always visible.

parent 6e583469
......@@ -684,7 +684,9 @@ class ConfigurationService extends AbstractService {
$sysLanguageService = $this->objectManager->get('SGalinski\Lfeditor\Service\SysLanguageService');
foreach ($languages as $index => $languageFlag) {
$sysLanguageId = $sysLanguageService->getSysLanguageIdByFlag($languageFlag);
if ($sysLanguageId !== NULL && $backendUser->checkLanguageAccess($sysLanguageId)) {
if ($languageFlag === 'en'
|| $sysLanguageId !== NULL && $backendUser->checkLanguageAccess($sysLanguageId)
) {
continue;
}
unset($languages[$index]);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment