File tree Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -249,7 +249,7 @@ func (a *snykApiClient) GetSastSettings(orgId string) (*sast_contract.SastRespon
249
249
}
250
250
251
251
func (a * snykApiClient ) GetOrgSettings (orgId string ) (* contract.OrgSettingsResponse , error ) {
252
- endpoint := a . url + fmt .Sprintf ("/v1/org/%s/settings" , url .QueryEscape (orgId ))
252
+ endpoint := fmt .Sprintf ("%s /v1/org/%s/settings" , a . url , url .QueryEscape (orgId ))
253
253
res , err := a .client .Get (endpoint )
254
254
if err != nil {
255
255
return nil , fmt .Errorf ("unable to retrieve org settings: %w" , err )
Original file line number Diff line number Diff line change @@ -6,6 +6,11 @@ type OrgIgnoreSettings struct {
6
6
ApprovalWorkflowEnabled bool `json:"approvalWorkflowEnabled,omitempty"`
7
7
}
8
8
9
+ type OrgRequestAccessSettings struct {
10
+ Enabled bool `json:"enabled,omitempty"`
11
+ }
12
+
9
13
type OrgSettingsResponse struct {
10
- Ignores OrgIgnoreSettings `json:"ignores"`
14
+ Ignores OrgIgnoreSettings `json:"ignores"`
15
+ RequestAccess OrgRequestAccessSettings `json:"requestAccess"`
11
16
}
You can’t perform that action at this time.
0 commit comments