Log Message:
-----------
adds support for allowing professors to see paths to file names
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.210
retrieving revision 1.211
diff -Lconf/global.conf.dist -Lconf/global.conf.dist -u -r1.210 -r1.211
--- conf/global.conf.dist
+++ conf/global.conf.dist
@@ -686,6 +686,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
@@ -852,7 +853,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.)
@@ -917,7 +921,7 @@
[qw(Parser Value)],
[qw(Parser::Legacy)],
# [qw(SaveFile)],
- [qw(Chromatic)],
+# [qw(Chromatic)],
[qw(Applet FlashApplet)],
];
|