Skip to content

Commit

Permalink
Highlight DANGEROUS permissions in red.
Browse files Browse the repository at this point in the history
  • Loading branch information
datkat21 committed Jan 26, 2024
1 parent 618e51c commit 0adf499
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion core.js
Original file line number Diff line number Diff line change
Expand Up @@ -663,7 +663,17 @@

if (item.privilege in corePrivileges) {
privileges[item.privilege] = corePrivileges[item.privilege];
if (!item.description) continue;
if (!item.description)
item.description =
'<span class="danger">No author note</span>';
// dangerous
if (item.privilege === "full") {
privileges[
item.privilege
].description = `<span class=\"danger\">${
getString(privileges[item.privilege].description)
}</span>`;
}
privileges[item.privilege].authorNote = item.description;
}
}
Expand Down

0 comments on commit 0adf499

Please sign in to comment.