fix: plugin settings auth bug (#3585)

This commit is contained in:
jack zhang 2024-02-29 17:49:11 +08:00 committed by GitHub
parent 43597a4529
commit 2140df071d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -100,6 +100,7 @@ export class PluginSettingsManager {
}
hasAuth(name: string) {
if (this.aclSnippets.includes(`!${this.getAclSnippet('*')}`)) return false;
return this.aclSnippets.includes(`!${this.getAclSnippet(name)}`) === false;
}