| commit | 9bcbe4f97aefc3e4679bafe1f37ac5e049f56621 | [log] [tgz] |
|---|---|---|
| author | Tony Mack <tmack@paris.CS.Princeton.EDU> | Mon Apr 29 08:13:27 2013 -0400 |
| committer | Tony Mack <tmack@paris.CS.Princeton.EDU> | Mon Apr 29 08:13:27 2013 -0400 |
| tree | 3a0fa6428bf1f97405607a5f9e40f696245747af | |
| parent | 54304c693d7996577ee21729c5bac6fd07a67556 [diff] [blame] |
fix bugs
diff --git a/plstackapi/core/models/site.py b/plstackapi/core/models/site.py index b15e35b..76cc0a4 100644 --- a/plstackapi/core/models/site.py +++ b/plstackapi/core/models/site.py
@@ -26,6 +26,9 @@ description=self.name, enabled=self.enabled) self.tenant_id = tenant.id + # give caller an admin role at the tenant they've created + self.driver.add_user_role(self.caller.user_id, tenant.id, 'admin') + # update the record if self.id: self.driver.update_tenant(self.tenant_id,