From e9d79fd74675901e572209c95b05535e1a0c1a77 Mon Sep 17 00:00:00 2001 From: AnnAngela Date: Sat, 14 Nov 2020 20:54:23 +0800 Subject: [PATCH] fix bug --- MoeUpload/MoeUpload.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MoeUpload/MoeUpload.js b/MoeUpload/MoeUpload.js index 6513a00..abaeabf 100755 --- a/MoeUpload/MoeUpload.js +++ b/MoeUpload/MoeUpload.js @@ -87,7 +87,7 @@ $(function() { uploadForm.find(".inputError").removeClass("inputError"); uploadForm.find(".uploadFormMsg").remove(); var wgUserGroups = mw.config.get("wgUserGroups"); - if (wgUserGroups.incldes("sysop") || wgUserGroups.incldes("patroller") || mw.util.getParamValue("disableUploadCheck") === "true") { + if (wgUserGroups.includes("sysop") || wgUserGroups.includes("patroller") || mw.util.getParamValue("disableUploadCheck") === "true") { return true; } var returnValue = true;