From e3d5fb05e9486edebbea1e08ebecfa11477fe779 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20BEAU?= Date: Sat, 19 Sep 2015 19:44:30 +0200 Subject: [PATCH] refactor code according to new api --- smsclient_ovh/smsclient.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/smsclient_ovh/smsclient.py b/smsclient_ovh/smsclient.py index 598eb39..3633639 100644 --- a/smsclient_ovh/smsclient.py +++ b/smsclient_ovh/smsclient.py @@ -59,7 +59,7 @@ class smsclient(models.Model): super(smsclient, self)._send_message(data) gateway = data.gateway if gateway: - if not self._check_permissions(gateway): + if not gateway._check_permissions(): raise Warning(_('You have no permission to access %s ') % (gateway.name, )) url = gateway.url