mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-19 17:38:19 +08:00
core: data feedback system
This commit is contained in:
1 parent
83cc85492d
commit
1817341eee
7 files changed
+54
-5
No files matched your search
@@ -130,6 +130,7 @@ class SwitchLanguageHandler extends Handler {
|
||||
@param('lang', Types.String)
|
||||
async get(domainId: string, lang: string) {
|
||||
if (this.user.hasPriv(PRIV.PRIV_USER_PROFILE)) {
|
||||
this.session.viewLang = lang;
|
||||
await user.setById(this.user._id, { viewLang: lang });
|
||||
} else this.session.viewLang = lang;
|
||||
this.back();
|
||||
|
||||
Reference in new issue
Block a user