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:
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user