Commit d7652bd 1 parent 658defd commit d7652bd Copy full SHA for d7652bd
File tree 2 files changed +9
-3
lines changed
2 files changed +9
-3
lines changed Original file line number Diff line number Diff line change 1
1
# Unreleased
2
2
3
3
## Enhancements
4
+ * Update team project access to include additional project roles by @joekarl [ #642 ] ( https://github.com/hashicorp/go-tfe/pull/642 )
4
5
5
6
## Bug Fixes
6
7
Original file line number Diff line number Diff line change @@ -43,8 +43,10 @@ type teamProjectAccesses struct {
43
43
type TeamProjectAccessType string
44
44
45
45
const (
46
- TeamProjectAccessAdmin TeamProjectAccessType = "admin"
47
- TeamProjectAccessRead TeamProjectAccessType = "read"
46
+ TeamProjectAccessAdmin TeamProjectAccessType = "admin"
47
+ TeamProjectAccessMaintain TeamProjectAccessType = "maintain"
48
+ TeamProjectAccessWrite TeamProjectAccessType = "write"
49
+ TeamProjectAccessRead TeamProjectAccessType = "read"
48
50
)
49
51
50
52
// TeamProjectAccessList represents a list of team project accesses
@@ -224,7 +226,10 @@ func (o TeamProjectAccessAddOptions) valid() error {
224
226
225
227
func validateTeamProjectAccessType (t TeamProjectAccessType ) error {
226
228
switch t {
227
- case TeamProjectAccessAdmin , TeamProjectAccessRead :
229
+ case TeamProjectAccessAdmin ,
230
+ TeamProjectAccessMaintain ,
231
+ TeamProjectAccessWrite ,
232
+ TeamProjectAccessRead :
228
233
// do nothing
229
234
default :
230
235
return ErrInvalidTeamProjectAccessType
You can’t perform that action at this time.
0 commit comments