add App.License, remove utils.IsLicensed / utils.License calls (#8203)

Этот коммит содержится в:
Chris
2018-02-06 17:25:49 -06:00
коммит произвёл GitHub
родитель 034dbc07e3
Коммит 1ec295f88c
21 изменённых файлов: 56 добавлений и 48 удалений

Просмотреть файл

@@ -220,7 +220,7 @@ func (a *App) sendBatchedEmailNotification(userId string, notifications []*batch
}
emailNotificationContentsType := model.EMAIL_NOTIFICATION_CONTENTS_FULL
if utils.IsLicensed() && *utils.License().Features.EmailNotificationContents {
if license := a.License(); license != nil && *license.Features.EmailNotificationContents {
emailNotificationContentsType = *a.Config().EmailSettings.EmailNotificationContentsType
}