WeBWorK Main Forum

how to add permissionlevels to course.config

how to add permissionlevels to course.config

by Ever Barbero -
Number of replies: 2

I need to change two lines in %permissionLevels = (); like this 

# become_student                 => "ta",

# score_sets                     => "ta",

but I do not want to add the whole %permissionLevels = (); which is many lines, to course.config, at a linux linux terminal, typing one line at a time, just to change 2 values.  I want to add those two lines to course.config using Webwork editor.  Copy paste the lines or the whole %permissionLevels = (); into Webwork editor does not work, it corrupts the file, so I have to type those 2 lines by hand, in the Webwork editor. 

What is the syntax to add just those two lines, keep the rest of permission levels unchanged (as it is defined somewhere in Webwork)?

 

In reply to Ever Barbero

Re: how to add permissionlevels to course.config

by Glenn Rice -
The syntax is

$permissionLevels{become_student} = "ta";
$permissionLevels{score_sets} = "ta";

Note that the permission level for "become_student" can be set via the "Course Configuration" in the course.  The setting is labeled "Allowed to act as another user".  Although "score_sets" does not have a way to do this via the web GUI.