File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed
lms/djangoapps/courseware Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -264,12 +264,12 @@ def legacy_link(course_key: CourseKey):
264
264
265
265
class ORASettingsApp (CourseApp ):
266
266
"""
267
- Course App config for ORA app.
267
+ Course App config for Flexible Peer Grading ORA app.
268
268
"""
269
269
270
270
app_id = "ora_settings"
271
- name = _ ("Open Response Assessment Settings " )
272
- description = _ ("Course level settings for Open Response Assessment ." )
271
+ name = _ ("Flexible Peer Grading for ORAs " )
272
+ description = _ ("Course level settings for Flexible Peer Grading Open Response Assessments ." )
273
273
documentation_links = {
274
274
"learn_more_configuration" : settings .ORA_SETTINGS_HELP_URL ,
275
275
}
@@ -287,14 +287,15 @@ def is_enabled(cls, course_key: CourseKey) -> bool:
287
287
"""
288
288
Get open response enabled status from course overview model.
289
289
"""
290
- return True
290
+ course = get_course_by_id (course_key )
291
+ return course .force_on_flexible_peer_openassessments
291
292
292
293
@classmethod
293
294
def set_enabled (cls , course_key : CourseKey , enabled : bool , user : 'User' ) -> bool :
294
295
"""
295
296
Update open response enabled status in modulestore. Always enable to avoid confusion that user can disable ora.
296
297
"""
297
- return True
298
+ raise ValueError ( "Flexible Peer Grading cannot be enabled/disabled via this API." )
298
299
299
300
@classmethod
300
301
def get_allowed_operations (cls , course_key : CourseKey , user : Optional [User ] = None ) -> Dict [str , bool ]:
You can’t perform that action at this time.
0 commit comments