Fix: don't die during locale selection if access control is disabled
This commit is contained in:
1 parent
b35ee6d3db
commit
87acd4c555
1 file changed
+1
-1
@@ -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"))
|
||||
|
||||
Reference in new issue
Block a user