update
This commit is contained in:
parent
7662a63126
commit
ad9789a940
@ -99,9 +99,10 @@ 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
|
||||
}
|
||||
//}else {
|
||||
// oldPrivileges[i].Price = oldPriv.Price
|
||||
//}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user