Remove unneeded checks

This commit is contained in:
2010-02-28 23:25:24 +00:00
parent 886580a02c
commit 9cb297d5d7

View File

@@ -80,10 +80,6 @@ class ServiceAccount(models.Model):
api = get_api(self.service.api)
if api.corp_only:
if not self.user.get_profile().corp_user:
raise CorporateOnlyService()
if self.active:
if not api.check_user(self.username):
api.add_user(self.username, self.password)
@@ -93,9 +89,6 @@ class ServiceAccount(models.Model):
if api.check_user(self.username):
api.delete_user(self.username)
if self.user.get_profile().corp_user:
api.set_corp(self.username)
# All went OK, save to the DB
return models.Model.save(self)