update
This commit is contained in:
parent
ae9c991d3e
commit
7662a63126
@ -99,6 +99,8 @@ func (c *Controller) updatePrivileges(oldPrivileges []Privilege) error {
|
||||
if newPriv, exists := newPrivilegesMap[oldPriv.PrivilegeID]; exists {
|
||||
if newPriv.Price != 0 {
|
||||
oldPrivileges[i].Price = newPriv.Price
|
||||
} else {
|
||||
oldPrivileges[i].Price = oldPriv.Price
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user