yield already generated permission check for serverset/botset

This commit is contained in:
jesopo 2019-06-14 12:25:53 +01:00
parent e0d99fe8b1
commit 7a5af8f558

View file

@ -321,7 +321,7 @@ class Module(ModuleManager.BaseModule):
"Cannot change config for current channel when in "
"private message")
elif context == "serverset" or context == "botset":
yield utils.Check("permission", "config")
yield permission_check
export_settings = self._get_export_setting(context)
if not setting == None: