This commit is contained in:
Aotumuri
2025-06-02 18:06:00 +09:00
parent 7701fcd3b1
commit ed90de10ec
+1 -11
View File
@@ -89,17 +89,7 @@ export class TerritoryPatternsModal extends LitElement {
const isAllowed = groupList.some((required) => roles.includes(required));
if (!isAllowed) {
let reason: string;
if (groupList.includes("donor")) {
reason =
"This pattern is available only to donors (money haters or early access supporters).";
} else if (groupList.includes("staff")) {
reason = "This pattern is available only to moderators and above.";
} else {
reason = `This pattern is available only to specific roles. (${groupList.join(", ")})`;
}
const reason = `This pattern requires the ${groupList.join(", ")} role.`;
this.setLockedPatterns([key], reason);
}
}