Merge pull request #178 from Icinga/bugfix/user-notificationsenabled-not-cast-to-db-bool

User: Fix NotificationsEnabled not cast to DB bool
This commit is contained in:
Alexander Aleksandrovič Klimov 2020-05-11 17:17:34 +02:00 committed by GitHub
commit b8586d8310
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -71,7 +71,7 @@ func (u *User) UpdateValues() []interface{} {
u.DisplayName,
u.EMail,
u.Pager,
u.NotificationsEnabled,
utils.Bool[u.NotificationsEnabled],
utils.EncodeChecksum(u.PeriodId),
utils.NotificationStatesToBitMask(u.States),
utils.NotificationTypesToBitMask(u.Types),