1
0
Fork 0
mirror of https://github.com/portainer/portainer.git synced 2025-07-23 07:19:41 +02:00

fix(snapshots): remove the attempt to snapshot untrusted environments EE-7407 (#12044)

This commit is contained in:
andres-portainer 2024-07-23 18:43:31 -03:00 committed by GitHub
parent 6eb9e906af
commit 66119a8b57
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 6 additions and 5 deletions

View file

@ -40,7 +40,7 @@ func (s *Service) Open(endpoint *portainer.Endpoint) error {
return ErrAsyncEnv
}
if endpoint.ID == 0 || endpoint.EdgeID == "" {
if endpoint.ID == 0 || endpoint.EdgeID == "" || !endpoint.UserTrusted {
return ErrInvalidEnv
}