Fix: don't die during locale selection if access control is disabled
This commit is contained in:
parent
b35ee6d3db
commit
87acd4c555
1 changed files with 1 additions and 1 deletions
|
|
@ -105,7 +105,7 @@ def get_locale():
|
|||
if "l10n" in request.values:
|
||||
return Locale.negotiate([request.values["l10n"]], LANGUAGES)
|
||||
|
||||
if g.identity:
|
||||
if hasattr(g, "identity") and g.identity and userManager is not None:
|
||||
userid = g.identity.id
|
||||
try:
|
||||
user_language = userManager.getUserSetting(userid, ("interface", "language"))
|
||||
|
|
|
|||
Loading…
Reference in a new issue