Check workspace permission, not ATAT permission
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
@@ -20,7 +20,7 @@ MEMBER_STATUSES = {
|
||||
"error": "Error on invite",
|
||||
"pending": "Pending",
|
||||
"unknown": "Unknown errors",
|
||||
"disabled": "Disabled"
|
||||
"disabled": "Disabled",
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user