Skip to content

Commit

Permalink
Check if user profile has language configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
aschempp committed May 26, 2022
1 parent 7c71672 commit 2240121
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ public function onPageLabel(array $args, $previousResult = null)
if (
isset($mainPage)
&& $mainPage instanceof PageModel
&& \is_array(BackendUser::getInstance()->pageLanguageLabels)
&& \in_array($page->rootId, BackendUser::getInstance()->pageLanguageLabels, false)
) {
return sprintf(
Expand Down

0 comments on commit 2240121

Please sign in to comment.