Skip to content

Commit

Permalink
Fix #433 Default description for organisation during 'creation'
Browse files Browse the repository at this point in the history
  • Loading branch information
albinpa authored and georgepadayatti committed Nov 1, 2023
1 parent 45b2487 commit 1cdaeef
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion internal/org/organizations.go
Original file line number Diff line number Diff line change
Expand Up @@ -715,6 +715,13 @@ func AddOrganization(orgReq config.Organization, typeId string, userId string) (
return Organization{}, errors.New("missing mandatory param - Location")
}

description := orgReq.Description
defaultDescription := "is committed to safeguarding your privacy. We process your personal data in line with data agreements, ensuring adherence to ISO27560 standards and legal frameworks like GDPR. For every personal data we process, you can view its usage purpose and make informed choices to opt in or out. For inquiries, contact our Data Protection Officer at dpo@"

if strings.TrimSpace(description) == "" {
description = defaultDescription
}

orgType, err := orgtype.Get(typeId)
if err != nil {
log.Printf("Invalid organization type ID: %v", typeId)
Expand All @@ -727,7 +734,7 @@ func AddOrganization(orgReq config.Organization, typeId string, userId string) (
o.Name = orgReq.Name
o.Location = orgReq.Location
o.Type = orgType
o.Description = orgReq.Description
o.Description = description
o.EulaURL = orgReq.EulaURL
o.Admins = append(o.Admins, admin)
o.Enabled = true
Expand Down

0 comments on commit 1cdaeef

Please sign in to comment.