Browse Source

refactor code according to new api

pull/128/head
Sébastien BEAU 9 years ago
committed by MonsieurB
parent
commit
e3d5fb05e9
  1. 2
      smsclient_ovh/smsclient.py

2
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

Loading…
Cancel
Save