fix: filter apps when verifying app names

This ensures folks can't interact with apps that are hidden from them via the filtering performed in app listing.
This commit is contained in:
Jose Diaz-Gonzalez
2022-05-16 00:56:18 -04:00
parent 9ea888f62e
commit b3d7174a7a
2 changed files with 27 additions and 1 deletions

View File

@@ -581,6 +581,11 @@ func VerifyAppName(appName string) error {
return &AppDoesNotExist{appName}
}
apps, _ := filterApps([]string{appName})
if len(apps) != 1 {
return &AppDoesNotExist{appName}
}
return nil
}