Allow admin users to start/end votes

This commit is contained in:
jesopo 2019-06-17 16:30:23 +01:00
parent 31503f3f75
commit 933668f0a3

View file

@ -38,6 +38,7 @@ class Module(ModuleManager.BaseModule):
:help: Start a yes/no vote :help: Start a yes/no vote
:usage: <description> :usage: <description>
:require_mode: o :require_mode: o
:permission: vote
""" """
current_vote = self._get_vote(event["target"]) current_vote = self._get_vote(event["target"])
if not current_vote == None: if not current_vote == None:
@ -54,6 +55,7 @@ class Module(ModuleManager.BaseModule):
""" """
:help: End the current yes/no vote :help: End the current yes/no vote
:require_mode: o :require_mode: o
:permission: vote
""" """
vote = self._get_vote(event["target"]) vote = self._get_vote(event["target"])
if vote == None: if vote == None: