mirror of
https://github.com/yunionio/cloudpods.git
synced 2026-09-19 10:46:58 +08:00
fix: disable delete standard image
This commit is contained in:
@@ -694,6 +694,9 @@ func (self *SImage) ValidateDeleteCondition(ctx context.Context) error {
|
||||
if self.IsGuestImage.IsTrue() {
|
||||
return httperrors.NewForbiddenError("image is the part of guest image")
|
||||
}
|
||||
if self.IsStandard.IsTrue() {
|
||||
return httperrors.NewForbiddenError("image is standard")
|
||||
}
|
||||
// if self.IsShared() {
|
||||
// return httperrors.NewForbiddenError("image is shared")
|
||||
// }
|
||||
|
||||
Reference in New Issue
Block a user