allow deleting global evs
Signed-off-by: jkoberg <jkoberg@owncloud.com>
This commit is contained in:
@@ -129,7 +129,7 @@ func (c *Converter) ConvertGlobalEvent(typ string, data json.RawMessage) (OC10No
|
||||
return OC10Notification{}, err
|
||||
}
|
||||
|
||||
return c.deprovisionMessage(PlatformDeprovision, dd.DeprovisionDate)
|
||||
return c.deprovisionMessage(PlatformDeprovision, dd.DeprovisionDate.Format(dd.DeprovisionFormat))
|
||||
}
|
||||
|
||||
}
|
||||
@@ -305,7 +305,7 @@ func (c *Converter) policiesMessage(eventid string, nt NotificationTemplate, exe
|
||||
}, nil
|
||||
}
|
||||
|
||||
func (c *Converter) deprovisionMessage(nt NotificationTemplate, deproDate time.Time) (OC10Notification, error) {
|
||||
func (c *Converter) deprovisionMessage(nt NotificationTemplate, deproDate string) (OC10Notification, error) {
|
||||
subj, subjraw, msg, msgraw, err := composeMessage(nt, c.locale, c.translationPath, map[string]interface{}{
|
||||
"date": deproDate,
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user