1
0
mirror of https://github.com/ansible/awx.git synced 2024-11-01 16:51:11 +03:00

Add recv_disconnect to acl allowed methods

This commit is contained in:
Matthew Jones 2015-04-21 09:51:30 -04:00
parent 96bf9e1bbb
commit fb3bbea027

View File

@ -29,7 +29,7 @@ valid_sockets = []
class TowerBaseNamespace(BaseNamespace):
def get_allowed_methods(self):
return []
return ['recv_disconnect']
def get_initial_acl(self):
global valid_sockets
@ -99,7 +99,8 @@ class AdHocCommandEventNamespace(TowerBaseNamespace):
class ScheduleNamespace(TowerBaseNamespace):
def get_allowed_methods(self):
return ["schedule_changed"]
parent_allowed = super(ScheduleNamespace, self).get_allowed_methods()
return parent_allowed + ["schedule_changed"]
def recv_connect(self):
logger.info("Received client connect for schedule namespace from %s" % str(self.environ['REMOTE_ADDR']))