commit | c6a2b2e6c5fa191d8ded3af4694620757aa9f6e0 | [log] [tgz] |
---|---|---|
author | Scott Baker <smbaker@gmail.com> | Tue Jul 07 12:13:17 2015 -0700 |
committer | Scott Baker <smbaker@gmail.com> | Tue Jul 07 12:13:17 2015 -0700 |
tree | 1b6262d4fb7fc3575a8c17deeda791ecdb094c49 | |
parent | 29415a8d97dc124b597e81b2a87b8859c536b6f9 [diff] |
fix permission check for TenantRoot missing allow field
diff --git a/xos/core/models/user.py b/xos/core/models/user.py index 91672c5..74b22ea 100644 --- a/xos/core/models/user.py +++ b/xos/core/models/user.py
@@ -326,7 +326,7 @@ return True return False - def can_update_tenant_root(self, tenant_root): + def can_update_tenant_root(self, tenant_root, allow=[]): from core.models.service import TenantRoot from core.models.site import SitePrivilege if self.can_update_root():