Skip to main content

authorize_own_changeset

Function authorize_own_changeset 

Source
pub(super) async fn authorize_own_changeset(
    conn: &mut PgConnection,
    user_id: Uuid,
    changeset_id: Uuid,
) -> Result<(AgentChangeset, AuthorizationToken), ControllerError>
Expand description

Loads the changeset and checks that it is the user’s and that they may still edit its course.