Implement answer access

Created on 23 July 2024, 4 months ago
Updated 16 August 2024, 3 months ago

Problem/Motivation

Answers are displayed on their own route like answer/1 which doesn't have the training in the URL. They also aren't group content so usual group permissions handling doesn't work.

However answers reference a module status entity, which in turn references the training.

From the training, we should be able to determine group access with group permissions.

Another alternative would be to actually make answers group content, but that's a much larger change to implement.

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

📌 Task
Status

Active

Version

1.0

Component

Activities and answers

Created by

🇬🇧United Kingdom catch

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @catch
  • Assigned to claudiu.cristea
  • 🇷🇴Romania claudiu.cristea Arad 🇷🇴

    I'm looking into this

  • 🇵🇱Poland Graber

    I think I'd skip displaying answers completely, except in a few places but those having their own, more general access checks:

    1. Course lesson answer form (already implemented)
    2. Teacher (manual) evaluation of activities (to be implemented)
    3. Course results display (just a couple of parameters there - score, label) (to be implemented)

    Outside of the scope above I don't see any operations on answers that'd need access checks.

  • 🇬🇧United Kingdom catch

    The 0.2 branch (or at least our sites that are based on it) also allow students to review the answers they've submitted - e.g. journal activities but also others. This is partly because it's not possible to see submitted answers when browsing to already submitted activities within a course.

  • 🇵🇱Poland Graber

    True. In both branches we have the revisit mode that serves that purpose including correcting existing answers and I think we don't need anything else really.. but always open to suggestions.

Production build 0.71.5 2024