File tree 2 files changed +4
-5
lines changed
2 files changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -103,7 +103,7 @@ func TestCheckPermissions(t *testing.T) {
103
103
Client : orgAdminClient ,
104
104
UserID : orgAdminUser .ID ,
105
105
Check : map [string ]bool {
106
- readAllUsers : true ,
106
+ readAllUsers : false ,
107
107
readMyself : true ,
108
108
readOwnWorkspaces : true ,
109
109
readOrgWorkspaces : true ,
@@ -115,7 +115,7 @@ func TestCheckPermissions(t *testing.T) {
115
115
Client : memberClient ,
116
116
UserID : memberUser .ID ,
117
117
Check : map [string ]bool {
118
- readAllUsers : true ,
118
+ readAllUsers : false ,
119
119
readMyself : true ,
120
120
readOwnWorkspaces : true ,
121
121
readOrgWorkspaces : false ,
Original file line number Diff line number Diff line change @@ -474,9 +474,8 @@ func TestGroup(t *testing.T) {
474
474
})
475
475
require .NoError (t , err )
476
476
477
- ggroup , err := client1 .Group (ctx , group .ID )
478
- require .NoError (t , err )
479
- require .Equal (t , group , ggroup )
477
+ _ , err = client1 .Group (ctx , group .ID )
478
+ require .Error (t , err , "regular users cannot read groups" )
480
479
})
481
480
482
481
t .Run ("FilterDeletedUsers" , func (t * testing.T ) {
You can’t perform that action at this time.
0 commit comments