Log Message:
-----------
add permissionLevel so that hints will be printed for instructors.
Tags:
----
rel-2-4-patches
Modified Files:
--------------
webwork2/lib/WeBWorK/ContentGenerator:
Hardcopy.pm
Revision Data
-------------
Index: Hardcopy.pm
===================================================================
RCS file: /webwork/cvs/system/webwork2/lib/WeBWorK/ContentGenerator/Hardcopy.pm,v
retrieving revision 1.94.2.2.2.2
retrieving revision 1.94.2.2.2.3
diff -Llib/WeBWorK/ContentGenerator/Hardcopy.pm -Llib/WeBWorK/ContentGenerator/Hardcopy.pm -u -r1.94.2.2.2.2 -r1.94.2.2.2.3
--- lib/WeBWorK/ContentGenerator/Hardcopy.pm
+++ lib/WeBWorK/ContentGenerator/Hardcopy.pm
@@ -993,6 +993,7 @@
showHints => $showHints ? 1 : 0, # insure that this value is numeric
showSolutions => $showSolutions ? 1 : 0, # (or what? -sam)
processAnswers => $showCorrectAnswers ? 1 : 0,
+ permissionLevel => $db->getPermissionLevel($userID)->permission,
};
my $formFields = { };
if ( $versioned && $MergedProblem->problem_id != 0 ) {
|