diff --git a/app/models/task.rb b/app/models/task.rb index 97a8db50b..e75815f90 100644 --- a/app/models/task.rb +++ b/app/models/task.rb @@ -49,6 +49,20 @@ def self.permissions :assess_extension, :request_extension ] + # What can admins do with tasks? + admin_role_permissions = [ + :get, + :get_submission, + :view_plagiarism, + :get_discussion + ] + # What can auditors do with tasks? + auditor_role_permissions = [ + :get, + :get_submission, + :view_plagiarism, + :get_discussion + ] # What can nil users do with tasks? nil_role_permissions = [] @@ -57,6 +71,8 @@ def self.permissions student: student_role_permissions, tutor: tutor_role_permissions, convenor: convenor_role_permissions, + admin: admin_role_permissions, + auditor: auditor_role_permissions, nil: nil_role_permissions } end diff --git a/app/models/unit.rb b/app/models/unit.rb index b07f010d4..62f93e8c6 100644 --- a/app/models/unit.rb +++ b/app/models/unit.rb @@ -63,6 +63,7 @@ def self.permissions :employ_staff, :add_tutorial, :add_task_def, + :provide_feedback, :download_stats, :download_unit_csv, :download_grades, @@ -73,6 +74,7 @@ def self.permissions auditor_role_permissions = [ :get_unit, :get_students, + :provide_feedback, :download_stats, :download_unit_csv, :download_grades