3
0
Fork 0
mirror of https://github.com/ZeppelinBot/Zeppelin.git synced 2025-03-15 05:41:51 +00:00

Require can_create for tag inspection

This commit is contained in:
Dragory 2020-04-08 21:09:32 +03:00
parent 7485c7f7d7
commit 48a9e0e883
No known key found for this signature in database
GPG key ID: 5F387BA66DF8AAC1

View file

@ -192,6 +192,7 @@ export class TagsPlugin extends ZeppelinPlugin<TConfigSchema> {
},
],
})
@d.permission("can_create")
async tagSourceCmd(msg: Message, args: { tag: string; delete?: boolean }) {
if (args.delete) {
return this.deleteTagCmd(msg, { tag: args.tag });