Skip to content

Improvement in calling of in_instructor for multiple assignment items #373

@Anas-hameed

Description

@Anas-hameed

Description/Context

The is_instructor method here is getting called for multiple assignments redundantly. Since is_instructor is checking the current user's permission. It should be called once at start.

Plan/Design

We should move it outside the loop and call it only once to avoid redundantly calling for all the submission items.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions