Skip to content

Commit

Permalink
Merge pull request #11 from Altoros/fix-get-auditor-group
Browse files Browse the repository at this point in the history
Fix copy-paste errors in "GetXGroup" functions in orgs and spaces packages
  • Loading branch information
Caleb Washburn authored Dec 21, 2016
2 parents ee51e9e + eee4554 commit 41c0639
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion organization/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ func (i *InputUpdateOrgs) GetManagerGroup() string {
}

func (i *InputUpdateOrgs) GetAuditorGroup() string {
if i.Manager.LdapGroup != "" {
if i.Auditor.LdapGroup != "" {
return i.Auditor.LdapGroup
} else {
return i.AuditorGroup
Expand Down
4 changes: 2 additions & 2 deletions space/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ type ConfigSpaceDefaults struct {
}

func (i *InputUpdateSpaces) GetDeveloperGroup() string {
if i.Manager.LdapGroup != "" {
if i.Developer.LdapGroup != "" {
return i.Developer.LdapGroup
} else {
return i.DeveloperGroup
Expand All @@ -79,7 +79,7 @@ func (i *InputUpdateSpaces) GetManagerGroup() string {
}

func (i *InputUpdateSpaces) GetAuditorGroup() string {
if i.Manager.LdapGroup != "" {
if i.Auditor.LdapGroup != "" {
return i.Auditor.LdapGroup
} else {
return i.AuditorGroup
Expand Down

0 comments on commit 41c0639

Please sign in to comment.