commit | 8100d2a58e453abaf6f1e26da6333b82823c0c55 | [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 | efcec6393ce4c54949cc53f0359dea324655e531 [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():