CSC/ECE 517 Fall 2019 - E1957. Time travel Not Allowed..!!! Restrict TAs’ ability to change their own grade + limit file-size upload: Difference between revisions

From Expertiza_Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 15: Line 15:
==Restrict TAs’ ability to change their own grade==
==Restrict TAs’ ability to change their own grade==
===Solution===
===Solution===
When a TA is added to a certain course, a TaMapping is created to connect the TA's id to the course's id. Therefore, we can use <pre>TaMapping.where</pre>
===Files modified===
===Files modified===



Revision as of 16:08, 27 October 2019

This wiki page is for the description of the Expertiza based OSS project - E1957

Introduction

Background

  • In Expertiza, If a user is listed as a TA in one course and as a student in another course, then if they navigate to the "Your scores" page of one of the assignments in which they are participating as a student, they can see a TA's view of that page. This would allow them to assign their own grades! However, TAs should not be able to change their grades from the course that they participated in as a student before.
  • A student can upload files with their submission. In some cases, students upload long videos that might not be necessary for the submission. As there is no restriction on the files being uploaded, this is a security issue in Expertiza. Uploaded file's size and type should be restricted since a student may also upload malware into the system affecting Expertiza.

Description

222

Design Pattern

design pattern

Restrict TAs’ ability to change their own grade

Solution

When a TA is added to a certain course, a TaMapping is created to connect the TA's id to the course's id. Therefore, we can use

TaMapping.where

Files modified

Limit file-size/type upload

Solution

Files modified

Testing using RSPEC