fix network changed

This commit is contained in:
Jesse Haka 2019-10-17 09:59:36 +03:00
parent 2e646e2eec
commit c4e52b8795
1 changed files with 1 additions and 1 deletions

View File

@ -144,7 +144,7 @@ func (_ *Port) CheckChanges(a, e, changes *Port) error {
if changes.Name != nil {
return fi.CannotChangeField("Name")
}
if e.Network != nil {
if changes.Network != nil {
return fi.CannotChangeField("Network")
}
}