Skip to main content

authorize_template_edit

Function authorize_template_edit 

Source
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.