Skip to content

Commit

Permalink
Fix #210 Enable organisation by default
Browse files Browse the repository at this point in the history
  • Loading branch information
albinpa authored and georgepadayatti committed Oct 11, 2023
1 parent c51f80f commit 19ad861
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/handlerv1/organization_handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@ func AddOrganization(w http.ResponseWriter, r *http.Request) {
o.EulaURL = orgReq.EulaURL
o.Admins = append(o.Admins, admin)
o.HlcSupport = orgReq.HlcSupport
o.Enabled = true

orgResp, err := org.Add(o)
if err != nil {
Expand Down
1 change: 1 addition & 0 deletions src/org/organizations.go
Original file line number Diff line number Diff line change
Expand Up @@ -724,6 +724,7 @@ func AddOrganization(orgReq config.Organization, typeId string, userId string) (
o.Description = orgReq.Description
o.EulaURL = orgReq.EulaURL
o.Admins = append(o.Admins, admin)
o.Enabled = true

orgResp, err := Add(o)
if err != nil {
Expand Down

0 comments on commit 19ad861

Please sign in to comment.