Fix layered profiles not readable via the API

This commit is contained in:
Patrick Pacher
2020-10-30 16:43:49 +01:00
parent c0509042a0
commit fb6b34ebe5
4 changed files with 75 additions and 30 deletions

View File

@@ -51,6 +51,8 @@ func GetProfile(source profileSource, id, linkedPath string) ( //nolint:gocognit
// Check if there already is an active and not outdated profile.
profile = getActiveProfile(scopedID)
if profile != nil {
profile.MarkStillActive()
if profile.outdated.IsSet() {
previousVersion = profile
} else {