Log Message:
-----------
File path names are printed for any professor by default.
The permission level for this can be set in global.
Individual permission to see path names can also be given.
File path names are printed for any professor.
Tags:
----
rel-2-4-patches
Modified Files:
--------------
webwork2/conf:
global.conf.dist
Revision Data
-------------
Index: global.conf.dist
===================================================================
RCS file: /webwork/cvs/system/webwork2/conf/global.conf.dist,v
retrieving revision 1.189.2.7.2.4
retrieving revision 1.189.2.7.2.5
diff -Lconf/global.conf.dist -Lconf/global.conf.dist -u -r1.189.2.7.2.4 -r1.189.2.7.2.5
--- conf/global.conf.dist
+++ conf/global.conf.dist
@@ -682,6 +682,7 @@
check_answers_after_due_date => "guest",
check_answers_after_answer_date => "guest",
create_new_set_version_when_acting_as_student => undef,
+ print_path_to_problem => "professor", # see "Special" PG environment variables
record_set_version_answers_when_acting_as_student => undef,
record_answers_when_acting_as_student => undef,
# "record_answers_when_acting_as_student" takes precedence
@@ -848,7 +849,10 @@
##### "Special" PG environment variables. (Stuff that doesn't fit in anywhere else.)
# Users for whom to print the file name of the PG file being processed.
-$pg{specialPGEnvironmentVars}{PRINT_FILE_NAMES_FOR} = [ "professor", ];
+$pg{specialPGEnvironmentVars}{PRINT_FILE_NAMES_FOR} = [ "professor", ];
+ # ie file paths are printed for 'gage'
+$pg{specialPGEnvironmentVars}{PRINT_FILE_NAMES_PERMISSION_LEVEL} = $userRoles{ $permissionLevels{print_path_to_problem} };
+ # (file paths are also printed for anyone with this permission or higher)
# Locations of CAPA resources. (Only necessary if you need to use converted CAPA
# problems.)
|