async fn authorize_template_edit(
conn: &mut PgConnection,
user: &AuthUser,
template: &EmailTemplate,
) -> Result<AuthorizationToken, ControllerError>Expand description
Authorizes editing template: teaching its course, or global admin for a global template.