Skip to content

Commit

Permalink
fix: add restriction level
Browse files Browse the repository at this point in the history
  • Loading branch information
lovelyCARDINAL committed Jan 21, 2024
1 parent ff29d27 commit 910d196
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/gadgets/flagEditWar/MediaWiki:Gadget-flagEditWar.js
Original file line number Diff line number Diff line change
@@ -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;
}
Expand Down

0 comments on commit 910d196

Please sign in to comment.