[WWdevel] professor accounts
Sam Hathaway
sh002i at math.rochester.edu
Wed Jan 26 13:31:11 EST 2005
On Jan 26, 2005, at 12:12 PM, B. Duffee wrote:
> I'm having a little trouble creating professor accounts from the
> system admin
> webpage. I have managed to log in as the user, but it immediately
> comes up with
> "User is not authorized to create or delete courses". I've tried
> setting the
> permission levels up to 7. Should I go up to 10 or is there something
> I'm
> missing?
Hi,
The default permission level for professors is 10. By default, only
professors are allowed to administrate courses. This is controlled in
the "Authorization system" section of the global.conf file. The example
below if from the development version -- yours may look slightly
different.
global.conf reads:
> #######################################################################
> #########
> # Authorization system
> #######################################################################
> #########
>
> # This lets you specify a minimum permission level needed to perform
> certain
> # actions. For each pair in the hash below, in order to perform the
> action
> # described by the key, the user must have a permission level greater
> than or
> # equal to the value.
>
> my $guest = -1;
> my $student = 0;
> my $ta = 5;
> my $professor = 10;
> my $nobody = undef;
>
> %permissionLevels = (
> login => $guest,
> report_bugs => $student,
> submit_feedback => $student,
> change_password => $student,
> change_email_address => $student,
>
> view_multiple_sets => $ta,
> view_unopened_sets => $ta,
> view_unpublished_sets => $ta,
> view_answers => $ta,
>
> become_student => $professor,
> access_instructor_tools => $ta,
> score_sets => $professor,
> send_mail => $professor,
> receive_feedback => $ta,
>
> create_and_delete_problem_sets => $professor,
> assign_problem_sets => $professor,
> modify_problem_sets => $professor,
> modify_student_data => $professor,
> modify_classlist_files => $professor,
> modify_set_def_files => $professor,
> modify_scoring_files => $professor,
> modify_problem_template_files => $professor,
>
> create_and_delete_courses => $professor,
> fix_course_databases => $professor,
>
> ##### Behavior of the interactive problem processor #####
>
> show_correct_answers_before_answer_date => $ta,
> show_solutions_before_answer_date => $ta,
> avoid_recording_answers => $ta,
> check_answers_before_open_date => $ta,
> check_answers_after_open_date_with_attempts => $ta,
> check_answers_after_open_date_without_attempts => $guest,
> check_answers_after_due_date => $guest,
> check_answers_after_answer_date => $guest,
> record_answers_when_acting_as_student => $nobody,
> # "record_answers_when_acting_as_student" takes precedence
> # over the following for professors acting as students:
> record_answers_before_open_date => $nobody,
> record_answers_after_open_date_with_attempts => $student,
> record_answers_after_open_date_without_attempts => $nobody,
> record_answers_after_due_date => $nobody,
> record_answers_after_answer_date => $nobody,
> dont_log_past_answers => $professor,
>
> ##### Behavior of the Hardcopy Processor #####
>
> download_hardcopy_multiuser => $ta,
> download_hardcopy_multiset => $ta,
> download_hardcopy_format_tex => $ta,
> );
The %permissionLevels hash indicates the minimum permission level
necessary to perform an action in the system. In this example, the
"create_and_delete_courses" action requires at least the permission
level $professor. The variable $professor has been assigned a value of
10, above:
> my $professor = 10;
Hope this helps.
-sam
More information about the webwork-devel
mailing list