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

Require can_create for tag inspection

This commit is contained in:
Dragory 2020-04-08 21:09:32 +03:00
parent ee41fcacfc
commit 8c643bca86

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 });