mirror of
https://github.com/ansible/awx.git
synced 2026-06-30 10:58:03 -02:30
is_anonymous and is_authenticated no longer support being called as methods
This commit is contained in:
@@ -24,7 +24,7 @@ def ws_connect(message):
|
||||
headers = dict(message.content.get('headers', ''))
|
||||
message.reply_channel.send({"accept": True})
|
||||
message.content['method'] = 'FAKE'
|
||||
if message.user.is_authenticated():
|
||||
if message.user.is_authenticated:
|
||||
message.reply_channel.send(
|
||||
{"text": json.dumps({"accept": True, "user": message.user.id})}
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user