mirror of
https://github.com/Ylianst/MeshCentral.git
synced 2025-03-09 15:40:18 +00:00
More user group improvements, translation improvements.
This commit is contained in:
parent
ee0c0f1021
commit
19b5c5663a
5 changed files with 28 additions and 17 deletions
|
@ -4165,7 +4165,7 @@ module.exports.CreateWebServer = function (parent, db, args, certificates) {
|
|||
function render(req, res, filename, args) {
|
||||
if ((obj.parent.webViewsOverridePath == null) && (obj.renderPages != null)) {
|
||||
// If a user set a localization, use that
|
||||
if ((req.session != null) && (req.session.userid)) {
|
||||
if ((req.query.lang == null) && (req.session != null) && (req.session.userid)) {
|
||||
var user = obj.users[req.session.userid];
|
||||
if ((user != null) && (user.lang != null)) { req.query.lang = user.lang; }
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue