From 910d1962b9746354c295faba0590e0dbf6599423 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E6=98=9F=E6=B5=B7?= <yan@musinya.com>
Date: Sun, 21 Jan 2024 23:04:21 +0800
Subject: [PATCH] fix: add restriction level

---
 src/gadgets/flagEditWar/MediaWiki:Gadget-flagEditWar.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/gadgets/flagEditWar/MediaWiki:Gadget-flagEditWar.js b/src/gadgets/flagEditWar/MediaWiki:Gadget-flagEditWar.js
index e84a486d..8b4c7045 100644
--- a/src/gadgets/flagEditWar/MediaWiki:Gadget-flagEditWar.js
+++ b/src/gadgets/flagEditWar/MediaWiki:Gadget-flagEditWar.js
@@ -1,7 +1,7 @@
 // <pre>
 "use strict";
 $(() => {
-    const protectLevel = ["sysop", "patrolleredit"];
+    const protectLevel = ["sysop", "patrolleredit", "extendedconfirmed", "techedit", "autoconfirmed"];
     if ($("#EditWarWarningEndTime")[0] || mw.config.get("wgNamespaceNumber") !== 0 || !mw.config.get("wgUserGroups").includes("sysop") || !protectLevel.includes(mw.config.get("wgRestrictionEdit")[0])) {
         return;
     }