Check workspace permission, not ATAT permission

This commit is contained in:
richard-dds
2018-11-29 10:35:11 -05:00
parent f546ccb673
commit 54aa10275f
5 changed files with 45 additions and 3 deletions

View File

@@ -27,6 +27,10 @@ class Environment(Base, mixins.TimestampsMixin, mixins.AuditableMixin):
def displayname(self):
return self.name
@property
def workspace(self):
return self.project.workspace
def auditable_workspace_id(self):
return self.project.workspace_id

View File

@@ -20,7 +20,7 @@ MEMBER_STATUSES = {
"error": "Error on invite",
"pending": "Pending",
"unknown": "Unknown errors",
"disabled": "Disabled"
"disabled": "Disabled",
}