Implemented an override of allowed language per workspace. This is an expert feature...
authorKasper Skårhøj <kasper@typo3.org>
Fri, 9 Oct 2009 07:05:55 +0000 (07:05 +0000)
committerKasper Skårhøj <kasper@typo3.org>
Fri, 9 Oct 2009 07:05:55 +0000 (07:05 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Core/trunk@6119 709f56b5-9817-0410-a4d7-c38de5d9e867

t3lib/class.t3lib_userauthgroup.php

index 80a5a09..1c2527b 100644 (file)
@@ -1472,6 +1472,11 @@ class t3lib_userAuthGroup extends t3lib_userAuth {
                                $this->addFileMount($row['title'], $row['path'], $row['path'], $row['base']?1:0, '');
                        }
                }
+
+               if ($allowed_languages = $this->getTSConfigVal('options.workspaces.allowed_languages.'.$this->workspace))       {
+                       $this->groupData['allowed_languages'] = $allowed_languages;
+                       $this->groupData['allowed_languages'] = t3lib_div::uniqueList($this->groupData['allowed_languages']);
+               }
        }
 
        /**