Commit c0f324f2 authored by ale's avatar ale
Browse files

Add templating for newsletter resources

Will set common attributes (status, shard, etc) on newly created
newsletters, just as we do for mailing lists.
parent 35dd72de
Pipeline #4649 passed with stages
in 5 minutes
......@@ -1041,7 +1041,7 @@ func (c *templateContext) applyTemplate(ctx context.Context, r *Resource, user *
return c.davResourceTemplate(ctx, r, user)
case ResourceTypeDatabase:
return c.databaseResourceTemplate(ctx, r, user)
case ResourceTypeMailingList:
case ResourceTypeMailingList, ResourceTypeNewsletter:
return c.listResourceTemplate(ctx, r, user)
return nil
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment